Please sign in to comment.
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 <email@example.com> Reviewed-by: Rolf Eike Beer <firstname.lastname@example.org> Acked-by: Tejun Heo <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...
Showing with 3 additions and 3 deletions.