Re: [PATCH] usb: typec: stusb160x: add missing NULL check for i2c_get_match_data()
Joshua Crofts <[email protected]> Thu, 6 Aug 2026 10:47:45 +0200
| Newsgroups | org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 6 Aug 2026 08:43:01 +0000 Joshua Crofts <[email protected]> wrote: > In stusb160x_probe(), the return value of i2c_get_match_data() is not > checked, causing a null pointer dereference later on if the device was > registered manually (without devicetree or ACPI). > > Fix this by adding a NULL check for the return value of > i2c_get_match_data(). > > Reported-by: [email protected] > Closes: https://syzkaller.appspot.com/bug?extid=6c7e68b141ebd3a2cadf > Fixes: 823754697556 ("usb: typec: stusb160x: Make use of i2c_get_match_data()") > Signed-off-by: Joshua Crofts <[email protected]> > --- Ugh, forgot to Cc stable. -- Kind regards, Joshua Crofts