From: Mathias Krause Date: Fri, 14 Sep 2012 09:58:32 +0000 (+0000) Subject: xfrm_user: return error pointer instead of NULL #2 X-Git-Tag: v3.2.31~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61819032c7d98c35d2f475032f3c9e30948feaf4;p=pandora-kernel.git xfrm_user: return error pointer instead of NULL #2 [ Upstream commit c25463722509fef0ed630b271576a8c9a70236f3 ] When dump_one_policy() returns an error, e.g. because of a too small buffer to dump the whole xfrm policy, xfrm_policy_netlink() returns NULL instead of an error pointer. But its caller expects an error pointer and therefore continues to operate on a NULL skbuff. Signed-off-by: Mathias Krause Acked-by: Steffen Klassert Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed