Thread (8 messages) 8 messages, 3 authors, 16d ago

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

flat view

From: David Heidelberg <david@ixit.cz>
Date: 2026-09-14 18:34:57
Also in: dri-devel, linux-arm-msm, lkml, phone-devel, stable

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

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@vger.kernel.org
Fixes: feeab87b3072 ("backlight: qcom-wled: Add support for short circuit handling")
Signed-off-by: David Heidelberg <david@ixit.cz>
---
  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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help