All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] usb: musb-new: Address some Smatch issues
@ 2025-09-30 15:52 Andrew Goodbody
  2025-09-30 15:52 ` [PATCH 1/3] usb: musb-new: Null check before dereference Andrew Goodbody
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrew Goodbody @ 2025-09-30 15:52 UTC (permalink / raw)
  To: Marek Vasut, Tom Rini, Lukasz Majewski, Mattijs Korpershoek
  Cc: u-boot, Kory Maincent, Andrew Goodbody

Smatch reported some issues with the musb-new driver which included a
variable being dereferenced before being null checked, an array index
being used before being limit checked and unsigned values being tested
for being negative.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
---
Andrew Goodbody (3):
      usb: musb-new: Null check before dereference
      usb: musb-new: Limit check array index before use
      usb: musb-new: Cannot test unsigned member to be negative

 drivers/usb/musb-new/am35x.c           |  4 ++--
 drivers/usb/musb-new/musb_gadget_ep0.c |  5 ++++-
 drivers/usb/musb-new/omap2430.c        | 34 +++++++++++++++++++++-------------
 drivers/usb/musb-new/ti-musb.c         | 28 +++++++++++++++++-----------
 4 files changed, 44 insertions(+), 27 deletions(-)
---
base-commit: 9710d98e8942151fc0c62d54100d9d27e8263d04
change-id: 20250930-usb_musb-new-ed01ca60ba89

Best regards,
-- 
Andrew Goodbody <andrew.goodbody@linaro.org>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-10-03  8:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-30 15:52 [PATCH 0/3] usb: musb-new: Address some Smatch issues Andrew Goodbody
2025-09-30 15:52 ` [PATCH 1/3] usb: musb-new: Null check before dereference Andrew Goodbody
2025-09-30 15:52 ` [PATCH 2/3] usb: musb-new: Limit check array index before use Andrew Goodbody
2025-10-03  8:25   ` Mattijs Korpershoek
2025-09-30 15:52 ` [PATCH 3/3] usb: musb-new: Cannot test unsigned member to be negative Andrew Goodbody

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.