[NETLINK] genetlink: Fix bugs spotted by Andrew Morton.
authorJamal Hadi Salim <hadi@cyberus.ca>
Mon, 13 Feb 2006 23:51:24 +0000 (15:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2006 23:51:24 +0000 (15:51 -0800)
commite200bd8065e4db6297cd8db071a9188cf9aa6b56
tree80c9ced19aa5a0fa0cc9be69d34ca45cf92394ad
parent178a3259f2508e786fb1bd6538365a167cee35c1
[NETLINK] genetlink: Fix bugs spotted by Andrew Morton.

- panic() doesn't return.

- Don't forget to unlock on genl_register_family() error path

- genl_rcv_msg() is called via pointer so there's no point in declaring it
  `inline'.

Notes:

genl_ctrl_event() ignores the genlmsg_multicast() return value.

lots of things ignore the genl_ctrl_event() return value.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c