]> git.baikalelectronics.ru Git - kernel.git/commit
net: Trap attempts to call sock_kfree_s() with a NULL pointer.
authorDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 21:02:37 +0000 (17:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 21:02:37 +0000 (17:02 -0400)
commit7ac84dc983cb08e6c208fc5a1d6e4bddf45aff7d
tree1837e8406e630c05e7a045e3bdcf6c4e2cd5860e
parent1e38f76ae866cbfb3ca4bb58160093de453934d8
net: Trap attempts to call sock_kfree_s() with a NULL pointer.

Unlike normal kfree() it is never right to call sock_kfree_s() with
a NULL pointer, because sock_kfree_s() also has the side effect of
discharging the memory from the sockets quota.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c