[GENETLINK]: Correctly report errors while registering a multicast group
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2c04ddb707
commit
79d310d01e
@@ -196,7 +196,7 @@ int genl_register_mc_group(struct genl_family *family,
|
|||||||
genl_ctrl_event(CTRL_CMD_NEWMCAST_GRP, grp);
|
genl_ctrl_event(CTRL_CMD_NEWMCAST_GRP, grp);
|
||||||
out:
|
out:
|
||||||
genl_unlock();
|
genl_unlock();
|
||||||
return 0;
|
return err;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(genl_register_mc_group);
|
EXPORT_SYMBOL(genl_register_mc_group);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user