From: Phil Oester Date: Fri, 21 Mar 2008 22:01:50 +0000 (-0700) Subject: [IPV4]: Fix null dereference in ip_defrag X-Git-Tag: v2.6.25-rc7~25^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12b101555f4a67db67a66966a516075bd477741f;p=pandora-kernel.git [IPV4]: Fix null dereference in ip_defrag Been seeing occasional panics in my testing of 2.6.25-rc in ip_defrag. Offending line in ip_defrag is here: net = skb->dev->nd_net where dev is NULL. Bisected the problem down to commit ac18e7509e7df327e30d6e073a787d922eaf211d ([NETNS][FRAGS]: Make the inet_frag_queue lookup work in namespaces). Below patch (idea from Patrick McHardy) fixes the problem for me. Signed-off-by: Phil Oester Acked-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed