From: Steffen Klassert Date: Wed, 12 Mar 2014 08:43:17 +0000 (+0100) Subject: flowcache: Fix resource leaks on namespace exit. X-Git-Tag: v3.15-rc1~113^2~172 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a93f5095a628d812b0b30c16d7bacea1efd783c;p=pandora-kernel.git flowcache: Fix resource leaks on namespace exit. We leak an active timer, the hotcpu notifier and all allocated resources when we exit a namespace. Fix this by introducing a flow_cache_fini() function where we release the resources before we exit. Fixes: ca925cf1534e ("flowcache: Make flow cache name space aware") Reported-by: Jakub Kicinski Tested-by: Jakub Kicinski Cc: Eric Dumazet Cc: Fan Du Signed-off-by: Steffen Klassert Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed