From: Steffen Klassert Date: Wed, 18 Jun 2014 10:34:21 +0000 (+0200) Subject: xfrm: Fix refcount imbalance in xfrm_lookup X-Git-Tag: omap-for-v3.17/fixes-against-rc2~215^2~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7eea4545ea775df957460f58eb56085a8892856;p=pandora-kernel.git xfrm: Fix refcount imbalance in xfrm_lookup xfrm_lookup must return a dst_entry with a refcount for the caller. Git commit 1a1ccc96abb ("xfrm: Remove caching of xfrm_policy_sk_bundles") removed this refcount for the socket policy case accidentally. This patch restores it and sets DST_NOCACHE flag to make sure that the dst_entry is freed when the refcount becomes null. Fixes: 1a1ccc96abb ("xfrm: Remove caching of xfrm_policy_sk_bundles") Signed-off-by: Steffen Klassert --- Reading git-diff-tree failed