From: David L Stevens Date: Tue, 29 Apr 2008 10:23:00 +0000 (-0700) Subject: net: Several cleanups for the setsockopt compat support. X-Git-Tag: v2.6.26-rc1~104^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be666e0a1345ed80f29cb30c73da0ec2ea5c5863;p=pandora-kernel.git net: Several cleanups for the setsockopt compat support. 1) added missing "__user" for kgsr and kgf pointers 2) verify read for only GROUP_FILTER_SIZE(0). The group_filter structure definition (via RFC) includes space for one source in the source list array, but that source need not be present. So, sizeof(group_filter) > GROUP_FILTER_SIZE(0). Fixed the user read-check for minimum length to use the smaller size. 3) remove unneeded "&" for gf_slist addresses Signed-off-by: David L Stevens Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- Reading git-diff-tree failed