]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb84367a03e5e38606b36f400635f23d8e73cb74e
treeec52826b2f5e7c917878ec4108e3e35a5f8f8598
parentf5dbfbf919b4dd6a056b3d1b485a6d1902b657ce
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