]> 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)
commit66307c588097a40b04a96e78bcb7faf27b74c791
treeec52826b2f5e7c917878ec4108e3e35a5f8f8598
parent6546a9fcd077139e3c0a41ad2ac0fe2794596e0a
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