ipv4: Check return of dev_set_allmulti
authorWang Chen <wangchen@cn.fujitsu.com>
Tue, 15 Jul 2008 03:55:26 +0000 (20:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 03:55:26 +0000 (20:55 -0700)
commitd607032db0ccd7274bee348df3214f6f52b24816
tree3870d689a346589604ff25e0c359debd3b0ca914
parent7af3db78a99f47b9ff40b8cb0bb08160ad6a3d6b
ipv4: Check return of dev_set_allmulti

allmulti might overflow.
Commit: "netdevice: Fix promiscuity and allmulti overflow" in net-next makes
dev_set_promiscuity/allmulti return error number if overflow happened.

Here, we check the positive increment for allmulti to get error return.

PS: For unwinding tunnel creating, we let ipip->ioctl() to handle it.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c