From: Horia Geanta Date: Wed, 12 Feb 2014 14:20:06 +0000 (+0200) Subject: xfrm: avoid creating temporary SA when there are no listeners X-Git-Tag: v3.15-rc1~113^2~287^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f24558e91563888d51e9be5b70981da920c37ac;p=pandora-kernel.git xfrm: avoid creating temporary SA when there are no listeners In the case when KMs have no listeners, km_query() will fail and temporary SAs are garbage collected immediately after their allocation. This causes strain on memory allocation, leading even to OOM since temporary SA alloc/free cycle is performed for every packet and garbage collection does not keep up the pace. The sane thing to do is to make sure we have audience before temporary SA allocation. Signed-off-by: Horia Geanta Signed-off-by: Steffen Klassert --- Reading git-diff-tree failed