]> git.baikalelectronics.ru Git - kernel.git/commit
ipx: Remove spurious NULL checking in ipx_ioctl().
authorDavid S. Miller <davem@davemloft.net>
Sat, 19 May 2012 04:51:04 +0000 (00:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 May 2012 04:51:04 +0000 (00:51 -0400)
commit0242fa1be3cfc9b3f821eac79ea04e6f0026beec
tree0d9e1b50ea9e7fed9cf43dad1261c82c49838c70
parentac1fa4996178136f795caf2614ef83d1ce4de5c7
ipx: Remove spurious NULL checking in ipx_ioctl().

We already unconditionally dereference 'sk' via lock_sock(sk) earlier
in this function, and our caller (sock_do_ioctl()) makes takes similar
liberties.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipx/af_ipx.c