Re: [PATCH 06/10] Input: synaptics-rmi4 - check for NULL drvdata in rmi_set_attn_data()

From: Dmitry Torokhov

Date: Mon Nov 23 2026 - 23:34:01 EST


On Mon, Nov 23, 2026 at 06:31:12PM +0000, Lee Jones wrote:
> Transport drivers such as hid-rmi remain registered and continue
> delivering attention reports via rmi_set_attn_data() even if the
> physical RMI driver failed to probe rmi_dev or was unbound via sysfs.
>
> When rmi_dev is unbound, dev_get_drvdata(&rmi_dev->dev) returns NULL and
> rmi_set_attn_data() dereferences drvdata->enabled in interrupt context.
>
> Check that drvdata is non-NULL before accessing drvdata->enabled,
> matching rmi_process_interrupt_requests(), rmi_driver_suspend(), and
> rmi_driver_resume().
>
> Fixes: b908d3cd812a ("Input: synaptics-rmi4 - allow to add attention data")
> Closes: https://sashiko.dev/#/bug/linux-0165ea80-0dcb-4d48-96cf-e2c1532199a0
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>

Applied, thank you.

--
Dmitry