aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
authorKirill Korotaev <dev@openvz.org>2006-01-09 09:42:42 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-09 12:36:52 -0500
commit14591de147f7c9656fa2b9c05680d2b46e286c40 (patch)
treee4c3a5d0da2f7f64d08ba6f10000e363f69889cd /net/netlink/af_netlink.c
parent677517771b7b6efaf8617e70f655b16f3cafcc9b (diff)
[PATCH] netlink oops fix due to incorrect error code
Fixed oops after failed netlink socket creation. Wrong parathenses in if() statement caused err to be 1, instead of negative value. Trivial fix, not trivial to find though. Signed-Off-By: Dmitry Mishin <dim@sw.ru> Signed-Off-By: Kirill Korotaev <dev@openvz.org> Signed-Off-By: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r--net/netlink/af_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 7849cac14d3a..a67f1b44c9a3 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -402,7 +402,7 @@ static int netlink_create(struct socket *sock, int protocol)
402 groups = nl_table[protocol].groups; 402 groups = nl_table[protocol].groups;
403 netlink_unlock_table(); 403 netlink_unlock_table();
404 404
405 if ((err = __netlink_create(sock, protocol) < 0)) 405 if ((err = __netlink_create(sock, protocol)) < 0)
406 goto out_module; 406 goto out_module;
407 407
408 nlk = nlk_sk(sock->sk); 408 nlk = nlk_sk(sock->sk);