From: Chris Wright <chrisw@osdl.org>
To: davem@redhat.com
Cc: netdev@oss.sgi.com
Subject: [PATCH] fix return value on MCAST_MSFILTER error case
Date: Tue, 20 Apr 2004 18:05:51 -0700 [thread overview]
Message-ID: <20040420180551.I21045@build.pdx.osdl.net> (raw)
Return -EINVAL if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen)
===== net/ipv4/ip_sockglue.c 1.22 vs edited =====
--- 1.22/net/ipv4/ip_sockglue.c Mon Mar 8 12:15:03 2004
+++ edited/net/ipv4/ip_sockglue.c Tue Apr 20 18:00:50 2004
@@ -800,7 +800,7 @@
goto mc_msf_out;
}
if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) {
- err = EINVAL;
+ err = -EINVAL;
goto mc_msf_out;
}
msize = IP_MSFILTER_SIZE(gsf->gf_numsrc);
next reply other threads:[~2004-04-21 1:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-21 1:05 Chris Wright [this message]
2004-04-21 23:46 ` [PATCH] fix return value on MCAST_MSFILTER error case 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=20040420180551.I21045@build.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.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).