| To: | davem@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH] fix return value on MCAST_MSFILTER error case |
| From: | Chris Wright <chrisw@xxxxxxxx> |
| Date: | Tue, 20 Apr 2004 18:05:51 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5i |
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);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: e100 NETDEV WATCHDOG transmit timeout since 2.6.4, Scott Feldman |
|---|---|
| Next by Date: | Re: IMQ / new Dummy device post., syrius . ml |
| Previous by Thread: | [PATCH 2/2 2.6.6-rc1-bk5] pcnet32 timer to free tx skbs for 79C971/972, Don Fry |
| Next by Thread: | Re: [PATCH] fix return value on MCAST_MSFILTER error case, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |