linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Jonsson <stefan.jonsson@nokia.com>
To: alan@lxorguk.ukuu.org.uk, torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.4.0 and 2.2.18 : Small bugfix for IP_ADD_MEMBERSHIP
Date: Tue, 09 Jan 2001 16:55:01 +0100	[thread overview]
Message-ID: <3A5B3455.9D5613D2@nokia.com> (raw)

This small patch fixes a small bug in IP_ADD_MEMBERSHIP where im->loaded
is used but not initialized when compiled without CONFIG_IP_MULTICAST.

--- net/ipv4/igmp.c.orig	Tue Jan  9 13:40:48 2001
+++ net/ipv4/igmp.c	Tue Jan  9 13:37:26 2001
@@ -442,8 +442,8 @@
 	im->timer.function=&igmp_timer_expire;
 	im->unsolicit_count = IGMP_Unsolicited_Report_Count;
 	im->reporter = 0;
-	im->loaded = 0;
 #endif
+	im->loaded = 0;
 	im->next=in_dev->mc_list;
 	in_dev->mc_list=im;
 	igmp_group_added(im);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2001-01-09 15:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-09 15:55 Stefan Jonsson [this message]
2001-01-10  9:47 ` [PATCH] 2.4.0 and 2.2.18 : Small bugfix for IP_ADD_MEMBERSHIP David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A5B3455.9D5613D2@nokia.com \
    --to=stefan.jonsson@nokia.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).