From: Steffen Klassert Date: Wed, 28 Aug 2013 06:47:14 +0000 (+0200) Subject: xfrm: Fix potential null pointer dereference in xdst_queue_output X-Git-Tag: v3.11~4^2~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=302a50bc941010d7a67f288fd0db31981e4d722d;p=pandora-kernel.git 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 --- Reading git-diff-tree failed