Re: [PATCH] Fix a potential NULL pointer dereference in usbat_check_status() in drivers/usb/storage/shuttle_usbat.c
Jens Axboe <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 04 2007, Micah Gruber wrote: > This patch fixes a potential null dereference bug where we dereference us before a null check. This patch simply moves the dereferencing after the null check. > > Signed-off-by: Micah Gruber <[email protected]> Be careful with stuff like that, if you actually look at the code, a us == NULL doesn't seem to be possible (or usbat_flash_transport() would have oopsed before). -- Jens Axboe