usb: ohci-hcd: Null check lurb_priv before dereference
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 30 Sep 2025 09:56:02 +0000 (10:56 +0100)
committerMarek Vasut <marek.vasut+usb@mailbox.org>
Tue, 28 Oct 2025 15:33:15 +0000 (16:33 +0100)
commit08f4c52c97ab3db174ce292eb86309ee29be5f07
tree1042bdeaad7af742b033fc3516d6813532cd706b
parent76d3b665310885f1a13ff83e818bb42f2cf26213
usb: ohci-hcd: Null check lurb_priv before dereference

When a variable needs a null check before it is dreferenced ensure that
this is done even in the case of assignment on declaration. This was not
happening for lurb_priv so correct it.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/usb/host/ohci-hcd.c