From: Maxin B John Date: Tue, 26 Jul 2011 00:12:59 +0000 (-0700) Subject: devres: fix possible use after free X-Git-Tag: v3.1-rc1~241^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae891a1b93bf62e9aaa116a7a71312375047fc9f;p=pandora-kernel.git devres: fix possible use after free devres uses the pointer value as key after it's freed, which is safe but triggers spurious use-after-free warnings on some static analysis tools. Rearrange code to avoid such warnings. Signed-off-by: Maxin B. John Reviewed-by: Rolf Eike Beer Acked-by: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed