]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: correctly handle releasing a not fully initialized sock
authorSasha Levin <sasha.levin@oracle.com>
Tue, 13 Jan 2015 17:46:41 +0000 (12:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2015 22:26:27 +0000 (17:26 -0500)
commitfc4dc91b96531b7e7f55666fc58be473ed38bdb3
tree52cd1f70e80d3a03671539a8795a8d2201915ae5
parent53af90236644ef1b382142528ae91378227b0d76
tipc: correctly handle releasing a not fully initialized sock

Commit 4589b8c07e49 "tipc: make tipc node table aware of net
namespace" has added a dereference of sock->sk before making sure it's
not NULL, which makes releasing a tipc socket NULL pointer dereference
for sockets that are not fully initialized.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c