aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2025-08-29 09:03:44 +0000
committerChun-Kuang Hu <[email protected]>2025-09-10 12:49:37 +0000
commit4de37a48b6b58faaded9eb765047cf0d8785ea18 (patch)
tree411ce236049188921119666f1ca98fa100edd9a1 /drivers/fpga/fpga-bridge.c
parentdrm/mediatek: mtk_hdmi: Fix inverted parameters in some regmap_update_bits calls (diff)
downloadkernel-4de37a48b6b58faaded9eb765047cf0d8785ea18.tar.gz
kernel-4de37a48b6b58faaded9eb765047cf0d8785ea18.zip
drm/mediatek: fix potential OF node use-after-free
The for_each_child_of_node() helper drops the reference it takes to each node as it iterates over children and an explicit of_node_put() is only needed when exiting the loop early. Drop the recently introduced bogus additional reference count decrement at each iteration that could potentially lead to a use-after-free. Fixes: 1f403699c40f ("drm/mediatek: Fix device/node reference count leaks in mtk_drm_get_all_drm_priv") Cc: Ma Ke <[email protected]> Cc: [email protected] Signed-off-by: Johan Hovold <[email protected]> Reviewed-by: CK Hu <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions