aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2025-10-27 06:06:01 +0000
committerGreg Kroah-Hartman <[email protected]>2025-11-09 02:14:59 +0000
commit96cf8500934e0ce2a6c486f1dbc3b1fff12f7a5e (patch)
treeb432040950a40cb902ace7dd14745fdbe1ca7fee /lib/test_fortify/write_overflow-strlcpy-src.c
parentmei: fix error flow in probe (diff)
downloadkernel-96cf8500934e0ce2a6c486f1dbc3b1fff12f7a5e.tar.gz
kernel-96cf8500934e0ce2a6c486f1dbc3b1fff12f7a5e.zip
slimbus: ngd: Fix reference count leak in qcom_slim_ngd_notify_slaves
The function qcom_slim_ngd_notify_slaves() calls of_slim_get_device() which internally uses device_find_child() to obtain a device reference. According to the device_find_child() documentation, the caller must drop the reference with put_device() after use. Found via static analysis and this is similar to commit 4e65bda8273c ("ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data()") Fixes: 917809e2280b ("slimbus: ngd: Add qcom SLIMBus NGD driver") Cc: stable <[email protected]> Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions