]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
tcp_memcontrol: fix reversed if condition
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 15 Dec 2011 01:05:10 +0000 (01:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Dec 2011 16:59:44 +0000 (11:59 -0500)
commitc48e074c7c75c0de4652ea5f5bf4e74c8cf4e3dd
tree420f3e91fc506f841e1caacc436a1780f8a4d1a9
parent888bdaa9b2c426dcca214e6efd388080938082cb
tcp_memcontrol: fix reversed if condition

We should only dereference the pointer if it's valid, not the other way
round.

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