summaryrefslogtreecommitdiff
path: root/net/ipv4/inet_hashtables.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-06-11 11:13:57 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-06-11 11:13:57 (GMT)
commit7b34ca2ac7063f4ebf07f85fd75253ed84d5c648 (patch)
tree639e89875cd047bb461ab61348050586ceca56b2 /net/ipv4/inet_hashtables.c
parent8b96d22d7a6ec999ae53ae86d829137503ceda65 (diff)
downloadlinux-fsl-qoriq-7b34ca2ac7063f4ebf07f85fd75253ed84d5c648.tar.xz
inet: Avoid potential NULL peer dereference.
We handle NULL in rt{,6}_set_peer but then our caller will try to pass that NULL pointer into inet_putpeer() which isn't ready for it. Fix this by moving the NULL check one level up, and then remove the now unnecessary NULL check from inetpeer_ptr_set_peer(). Reported-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_hashtables.c')
0 files changed, 0 insertions, 0 deletions