projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c79c5ff
)
net: add addr len check to dev_mc_add
author
Jiri Pirko
<jpirko@redhat.com>
Wed, 24 Feb 2010 22:49:15 +0000
(22:49 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 26 Feb 2010 12:22:26 +0000
(
04:22
-0800)
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev_mcast.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev_mcast.c
b/net/core/dev_mcast.c
index 9e2fa39f22a300e1fc46502aac39f305751e69c5..fd91569e2394b0b37caada596af21b29a5e2df3b 100644
(file)
--- a/
net/core/dev_mcast.c
+++ b/
net/core/dev_mcast.c
@@
-96,6
+96,8
@@
int dev_mc_add(struct net_device *dev, void *addr, int alen, int glbl)
int err;
netif_addr_lock_bh(dev);
+ if (alen != dev->addr_len)
+ return -EINVAL;
err = __dev_addr_add(&dev->mc_list, &dev->mc_count, addr, alen, glbl);
if (!err)
__dev_set_rx_mode(dev);