Merge "Revert "genetlink: disallow subscribing to unknown mcast groups""

This commit is contained in:
Linux Build Service Account 2016-08-13 04:51:58 -07:00 committed by Gerrit - the friendly Code Review server
commit 044c24aaaf

View file

@ -993,7 +993,7 @@ static struct genl_multicast_group genl_ctrl_groups[] = {
static int genl_bind(struct net *net, int group) static int genl_bind(struct net *net, int group)
{ {
int i, err = -ENOENT; int i, err = 0;
down_read(&cb_lock); down_read(&cb_lock);
for (i = 0; i < GENL_FAM_TAB_SIZE; i++) { for (i = 0; i < GENL_FAM_TAB_SIZE; i++) {