netlink: Fix netlink_insert EADDRINUSE error
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2015 06:23:48 +0000 (17:23 +1100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jan 2015 07:38:07 +0000 (02:38 -0500)
commit919d9db9521862d01712d9be25cd6ebfcc353eed
tree18065576ca940cb081ac5f9e2305c4dd13deee18
parent57699a40b4f2694d3ee63fd5e6465ec8f600b620
netlink: Fix netlink_insert EADDRINUSE error

The patch c5adde9468b0714a051eac7f9666f23eb10b61f7 ("netlink:
eliminate nl_sk_hash_lock") introduced a bug where the EADDRINUSE
error has been replaced by ENOMEM.  This patch rectifies that
problem.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c