summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorDavid Heidelberg <david@ixit.cz>2026-09-21 12:46:22 +0200
committerLee Jones <lee@kernel.org>2026-10-14 13:29:55 +0100
commit186fc521f211a207c323b753659f28d3dda7bc45 (patch)
tree67c30fd4a31a03239841af268a309f63988a4768 /tools/lib/python
parent1c93924893871c517e54fefc1feb420af3eadcfb (diff)
backlight: qcom-wled: Fix NULL pointer dereference in wled_remove()
wled_probe() doesn't set the driver data for the platform device. As a result, platform_get_drvdata() in wled_remove() will return NULL, and the first dereference of it crashes on unbind. Set the platform device driver data in wled_probe(). Cc: stable@vger.kernel.org Fixes: feeab87b3072 ("backlight: qcom-wled: Add support for short circuit handling") Signed-off-by: David Heidelberg <david@ixit.cz> Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://patch.msgid.link/20260921-qcom-wled-backlight-v4-1-bab8c7ef73cb@ixit.cz Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions