Protect __release_resource against resources without parents
authorPhil Elwell <phil@raspberrypi.org>
Fri, 13 Mar 2015 12:43:36 +0000 (12:43 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:46 +0000 (16:03 +0000)
commit43e8fef083f8754bb00cbd15b573aa194f44d5a6
treed167946eb2c15d494f46058125eaa885299f591f
parent16f8c6bc6e901dcf4402e6de79e630ea8f942c41
Protect __release_resource against resources without parents

Without this patch, removing a device tree overlay can crash here.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
kernel/resource.c