]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: serial: ti_usb_3410_5052: drop bogus read urb check
authorJohan Hovold <johan@kernel.org>
Thu, 24 Apr 2025 07:44:48 +0000 (09:44 +0200)
committerJohan Hovold <johan@kernel.org>
Mon, 5 May 2025 12:25:59 +0000 (14:25 +0200)
commit692a497eb748fa597918f1faa11e77465b23cc00
treeb2e2123291b6b88d1b76e7dce8fc898c843bc986
parentb4432656b36e5cc1d50a1f2dc15357543add530e
USB: serial: ti_usb_3410_5052: drop bogus read urb check

The read urb pointer is dereferenced before checking that it is non-NULL
during open(), but no check is needed as the existence of a bulk in
endpoint is verified during attach() since commit ef079936d3cd ("USB:
serial: ti_usb_3410_5052: fix NULL-deref at open").

Drop the bogus read urb sanity check.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ti_usb_3410_5052.c