[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>

authored by

Kirill Korotaev and committed by
Linus Torvalds
14591de1 67751777

+1 -1
+1 -1
net/netlink/af_netlink.c
··· 402 402 groups = nl_table[protocol].groups; 403 403 netlink_unlock_table(); 404 404 405 - if ((err = __netlink_create(sock, protocol) < 0)) 405 + if ((err = __netlink_create(sock, protocol)) < 0) 406 406 goto out_module; 407 407 408 408 nlk = nlk_sk(sock->sk);