genetlink: A genl_bind() to an out-of-range multicast group should not WARN().
authorDavid S. Miller <davem@davemloft.net>
Mon, 29 Dec 2014 21:31:49 +0000 (16:31 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Dec 2014 21:31:49 +0000 (16:31 -0500)
commitdc97a1a9477f969e34b38ca9d9cd231cb93ebea2
treeec52826b2f5e7c917878ec4108e3e35a5f8f8598
parent023e2cfa36c31b0ad28c159a1bb0d61ff57334c8
genetlink: A genl_bind() to an out-of-range multicast group should not WARN().

Users can request to bind to arbitrary multicast groups, so warning
when the requested group number is out of range is not appropriate.

And with the warning removed, and the 'err' variable properly given
an initial value, we can remove 'found' altogether.

Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c