From: Thomas Graf Date: Tue, 24 Jul 2007 22:34:53 +0000 (-0700) Subject: [GENETLINK]: Correctly report errors while registering a multicast group X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=79d310d01ec2a55e0ac1810aee56886ebee58c53;p=openwrt%2Fstaging%2Fblogic.git [GENETLINK]: Correctly report errors while registering a multicast group Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index 457a2873bb03..8c11ca4a2121 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -196,7 +196,7 @@ int genl_register_mc_group(struct genl_family *family, genl_ctrl_event(CTRL_CMD_NEWMCAST_GRP, grp); out: genl_unlock(); - return 0; + return err; } EXPORT_SYMBOL(genl_register_mc_group);