From: Timo Teräs Date: Wed, 22 May 2013 01:40:47 +0000 (+0000) Subject: xfrm: properly handle invalid states as an error X-Git-Tag: v3.10-rc3~18^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=497574c72c9922cf20c12aed15313c389f722fa0;p=pandora-kernel.git xfrm: properly handle invalid states as an error The error exit path needs err explicitly set. Otherwise it returns success and the only caller, xfrm_output_resume(), would oops in skb_dst(skb)->ops derefence as skb_dst(skb) is NULL. Bug introduced in commit bb65a9cb (xfrm: removes a superfluous check and add a statistic). Signed-off-by: Timo Teräs Cc: Li RongQing Cc: Steffen Klassert Signed-off-by: David S. Miller --- Reading git-diff-tree failed