Skip to content
Commit 55afabaa authored by David S. Miller's avatar David S. Miller
Browse files

inet: Fix BUG triggered by __rt{,6}_get_peer().



If no peer actually gets attached (either because create is zero or
the peer allocation fails) we'll trigger a BUG because we
unconditionally do an rt{,6}_peer_ptr() afterwards.

Fix this by guarding it with the proper check.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 352e04b9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment