From: Eric Dumazet Date: Sun, 25 Nov 2012 06:41:45 +0000 (+0000) Subject: ipv4: ipmr: various fixes and cleanups X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~221 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e1859fbcc3ccdd56d528df91d7b6f70e73d6b82;p=pandora-kernel.git ipv4: ipmr: various fixes and cleanups 1) ip_mroute_setsockopt() & ip_mroute_getsockopt() should not access/set raw_sk(sk)->ipmr_table before making sure the socket is a raw socket, and protocol is IGMP 2) MRT_INIT should return -EINVAL if optlen != sizeof(int), not -ENOPROTOOPT 3) MRT_ASSERT & MRT_PIM should validate optlen 4) " (v) ? 1 : 0 " can be written as " !!v " Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed