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, 19 Feb 2024 11:31:31 +0000 (11:31 +0000)
commitcd583cf0cb95242b9d4b027931f65a13e496f77b
tree14c6ecfe2982d0c61b8578345f8086d9b7fc3b94
parent0cb0a8a01776e0bfdfa9316f8e0ed118ac06665b
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