Re: [PATCH v3 1/4] backlight: qcom-wled: Fix NULL pointer dereference in PM callbacks

From: David Heidelberg

Date: Mon Sep 14 2026 - 14:47:02 EST


On 14/09/2026 20:14, David Heidelberg via B4 Relay wrote:
From: David Heidelberg <david@xxxxxxx>

wled_probe() doesn't set the driver data for the platform device.
As a result, dev_get_drvdata() in wled_remove() will return NULL,
leading to a NULL pointer dereference afterward.

Set the platform device driver data in wled_probe().

Cc: stable@xxxxxxxxxxxxxxx
Fixes: feeab87b3072 ("backlight: qcom-wled: Add support for short circuit handling")
Signed-off-by: David Heidelberg <david@xxxxxxx>
---
drivers/video/backlight/qcom-wled.c | 1 +
1 file changed, 1 insertion(+)

Please ignore this [1/4] patch, so at least the rest get fixed.
In next series, I'll omit this one (I thought it's easy drop in fix for critical, but seems not).

David