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:
8b96d22
)
inet: Avoid potential NULL peer dereference.
author
David S. Miller
<davem@davemloft.net>
Mon, 11 Jun 2012 11:13:57 +0000
(
04:13
-0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 11 Jun 2012 11:13:57 +0000
(
04:13
-0700)
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>
No differences found