[GENETLINK]: Correctly report errors while registering a multicast group
authorThomas Graf <tgraf@suug.ch>
Tue, 24 Jul 2007 22:34:53 +0000 (15:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2007 22:34:53 +0000 (15:34 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c

index 457a2873bb03174a9b7cbb825cb4a3b0807d997d..8c11ca4a2121692614ac43064c2718695d11bf6b 100644 (file)
@@ -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);