[PATCH] usb: chipidea: ci_hdrc_imx: Fix NPD of usbmisc_data
Stefan Wahren
wahrenst at gmx.net
Fri May 2 01:35:51 PDT 2025
Am 01.05.25 um 17:38 schrieb Greg Kroah-Hartman:
> On Tue, Apr 22, 2025 at 08:56:01PM +0200, Stefan Wahren wrote:
>> The commit 74adad500346 ("usb: chipidea: ci_hdrc_imx: decrement device's
>> refcount in .remove() and in the error path of .probe()") introduced
>> a NULL pointer dereference on platforms which have no usbmisc_data
>> (e.g. i.MX28). So add the missing checks in .probe() and .remove().
>>
>> Fixes: 74adad500346 ("usb: chipidea: ci_hdrc_imx: decrement device's refcount in .remove() and in the error path of .probe()")
>> Cc: <stable at kernel.org>
>> Signed-off-by: Stefan Wahren <wahrenst at gmx.net>
>> ---
>> drivers/usb/chipidea/ci_hdrc_imx.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
> Does not apply to 6.15-rc4 at all, can you rebase and resubmit?
Sorry, i didn't noticed that Fedor Pchelkin already send "usb: chipidea:
ci_hdrc_imx: fix usbmisc handling" in March to fix this.
Regards
>
> thanks,
>
> greg k-h
More information about the linux-arm-kernel
mailing list