diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2013-08-28 08:47:14 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2013-08-28 08:47:14 +0200 |
commit | 302a50bc941010d7a67f288fd0db31981e4d722d (patch) | |
tree | 162abbe125b769187a43c8d7ed133765d2134c7a /net/batman-adv/distributed-arp-table.h | |
parent | ipv6: set skb->protocol on tcp, raw and ip6_append_data genereated skbs (diff) | |
download | linux-302a50bc941010d7a67f288fd0db31981e4d722d.tar.xz linux-302a50bc941010d7a67f288fd0db31981e4d722d.zip |
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: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/batman-adv/distributed-arp-table.h')
0 files changed, 0 insertions, 0 deletions