Skip to content
Snippets Groups Projects
user avatar
Maxin B John authored
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: default avatarMaxin B. John <maxin.john@gmail.com>
Reviewed-by: default avatarRolf Eike Beer <eike-kernel@sf-tec.de>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
ae891a1b
History