git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81b4011
)
ipv4: avoid passing NULL to inet_putpeer() in icmpv4_xrlim_allow()
author
Neal Cardwell
<ncardwell@google.com>
Sat, 24 Nov 2012 18:54:37 +0000
(18:54 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 26 Nov 2012 22:24:41 +0000
(17:24 -0500)
inet_getpeer_v4() can return NULL under OOM conditions, and while
inet_peer_xrlim_allow() is OK with a NULL peer, inet_putpeer() will
crash.
This code path now uses the same idiom as the others from:
1d861aa4b3fb08822055345f480850205ffe6170
("inet: Minimize use of
cached route inetpeer.").
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c
patch
|
blob
|
history
diff --cc
net/ipv4/icmp.c
Simple merge