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>
Mon, 13 May 2019 23:07:51 +0000 (00:07 +0100)
commit2a63ec227a8445d38985600ed9deec72626b3a9d
treeb6f6b86aa61118d670c2ca07af8deabf7e20001e
parentaac7b105788eabc21b825d67707d3941688df5b1
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