aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-07-24 15:34:53 -0700
committerDavid S. Miller <davem@davemloft.net>2007-07-24 15:34:53 -0700
commit79d310d01ec2a55e0ac1810aee56886ebee58c53 (patch)
tree80c4e2ab418c921bb7a492a8e6fd168825784722 /net
parent[GENETLINK]: Fix adjustment of number of multicast groups (diff)
downloadlinux-dev-79d310d01ec2a55e0ac1810aee56886ebee58c53.tar.xz
linux-dev-79d310d01ec2a55e0ac1810aee56886ebee58c53.zip
[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>
Diffstat (limited to 'net')
-rw-r--r--net/netlink/genetlink.c2
1 files changed, 1 insertions, 1 deletions
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);