Protect __release_resource against resources without parents
authorPhil Elwell <phil@raspberrypi.org>
Fri, 13 Mar 2015 12:43:36 +0000 (12:43 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:12:45 +0000 (19:12 +0000)
commitcdbdfcaa0a9bbc05930a24448dfec696d4031d3e
tree31ead5a91e1bed18ce6cecce45b94c1d6bd8d47e
parente9fa43c1ab3f0fe79a7eaabba37dffae6460b148
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