Commit ae891a1b93bf62e9aaa116a7a71312375047fc9f
Committed by
Linus Torvalds
1 parent
5190f0c030
Exists in
master
and in
4 other branches
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>
Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff
kernel/irq/devres.c
lib/devres.c
mm/dmapool.c