From: Johannes Berg Date: Wed, 18 Jul 2007 09:07:51 +0000 (-0700) Subject: [NETLINK]: negative groups in netlink_setsockopt X-Git-Tag: v2.6.23-rc1~496^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb4965344965530411359891214cd6fcab483649;p=pandora-kernel.git [NETLINK]: negative groups in netlink_setsockopt Reading netlink_setsockopt it's not immediately clear why there isn't a bug when you pass in negative numbers, the reason being that the >= comparison is really unsigned although 'val' is signed because nlk->ngroups is unsigned. Make 'val' unsigned too. [ Update the get_user() cast to match. --DaveM ] Signed-off-by: Johannes Berg Signed-off-by: David S. Miller --- Reading git-diff-tree failed