summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/reset
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2018-10-08 13:14:35 +0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2018-10-08 15:25:21 +0200
commitb790c8ea5593d6dc3580adfad8e117eeb56af874 (patch)
treed2d2fe620766a8caf5d26cdc934ef5b0ef14a3aa /Documentation/devicetree/bindings/reset
parenteea2926b0a390969828e49ea96c45a2b1f007030 (diff)
reset: Fix potential use-after-free in __of_reset_control_get()
Calling of_node_put() decreases the reference count of a device tree object, and may free some data. However, the of_phandle_args structure embedding it is passed to reset_controller_dev.of_xlate() after that, so it may still be accessed. Move the call to of_node_put() down to fix this. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> [p.zabel@pengutronix.de: moved of_node_put after mutex_unlock] Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'Documentation/devicetree/bindings/reset')
0 files changed, 0 insertions, 0 deletions