Protect __release_resource against resources without parents
authorPhil Elwell <phil@raspberrypi.org>
Fri, 13 Mar 2015 12:43:36 +0000 (12:43 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 00:59:35 +0000 (00:59 +0000)
commitd982d52fe03239ec0083a795cf9379b575e82943
tree954e5527d028d2f0abeb019a250f6015c93cc798
parentb370f1e071beb6fa3f6835ff32ac90cc53251626
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