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/bridge/br_multicast.c | |
parent | 9c9c9ad5fae7e9ef56a38acb508a01919b225e9a (diff) | |
download | linux-302a50bc941010d7a67f288fd0db31981e4d722d.tar.gz linux-302a50bc941010d7a67f288fd0db31981e4d722d.tar.bz2 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/bridge/br_multicast.c')
0 files changed, 0 insertions, 0 deletions