diff options
author | Maxin B John <maxin.john@gmail.com> | 2011-07-26 02:12:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 05:57:14 +0200 |
commit | ae891a1b93bf62e9aaa116a7a71312375047fc9f (patch) | |
tree | 83e821e818654da3e3443ecddd757665251db6e0 /mm/memory-failure.c | |
parent | asm-generic/system.h: drop useless __KERNEL__ (diff) | |
download | linux-ae891a1b93bf62e9aaa116a7a71312375047fc9f.tar.xz linux-ae891a1b93bf62e9aaa116a7a71312375047fc9f.zip |
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 <maxin.john@gmail.com>
Reviewed-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions