Skip to content
Commit 302a50bc authored by Steffen Klassert's avatar Steffen Klassert
Browse files

xfrm: Fix potential null pointer dereference in xdst_queue_output



The net_device might be not set on the skb when we try refcounting.
This leads to a null pointer dereference in xdst_queue_output().
It turned out that the refcount to the net_device is not needed
after all. The dst_entry has a refcount to the net_device before
we queue the skb, so it can't go away. Therefore we can remove the
refcount on queueing to fix the null pointer dereference.

Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 9c9c9ad5
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