2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 14:43:58 +08:00
linux-next/drivers/usb/storage
Colin Ian King 446230f52a usb: storage: return on error to avoid a null pointer dereference
When us->extra is null the driver is not initialized, however, a
later call to osd200_scsi_to_ata is made that dereferences
us->extra, causing a null pointer dereference.  The code
currently detects and reports that the driver is not initialized;
add a return to avoid the subsequent dereference issue in this
check.

Thanks to Alan Stern for pointing out that srb->result needs setting
to DID_ERROR << 16

Detected by CoverityScan, CID#100308 ("Dereference after null check")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-17 13:11:57 +02:00
..
alauda.c usb: storage: alauda: don't print on ENOMEM 2016-08-30 19:17:39 +02:00
cypress_atacb.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
datafab.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
debug.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
debug.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
ene_ub6250.c Merge 4.12-rc2 into usb-next 2017-05-22 09:00:23 +02:00
freecom.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
initializers.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
initializers.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
isd200.c usb: storage: return on error to avoid a null pointer dereference 2017-07-17 13:11:57 +02:00
jumpshot.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
karma.c usb: storage: karma: remove useless variable 2017-03-17 13:27:41 +09:00
Kconfig PM / Kconfig: Replace PM_RUNTIME with PM in dependencies 2014-12-13 00:44:04 +01:00
Makefile
onetouch.c usb: storage: fix module reference for scsi host 2015-05-10 16:03:50 +02:00
option_ms.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
option_ms.h
protocol.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
protocol.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
realtek_cr.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
scsiglue.c scsi: introduce a quirk for false cache reporting 2016-09-13 08:08:24 +02:00
scsiglue.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
sddr09.c usb: storage: sddr09: Remove a set-but-not-used variable 2017-01-25 10:52:43 +01:00
sddr55.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
shuttle_usbat.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
sierra_ms.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
sierra_ms.h
transport.c Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y 2016-11-15 11:08:51 +01:00
transport.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
uas-detect.h uas: Set max_sectors_240 quirk for ASM1053 devices 2015-04-28 12:48:57 +02:00
uas.c USB: uas: Fix slave queue_depth not being set 2016-06-01 14:56:24 -07:00
unusual_alauda.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_cypress.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_datafab.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_devs.h USB: storage: e-mail update in drivers/usb/storage/unusual_devs.h 2017-04-25 20:01:23 +02:00
unusual_ene_ub6250.h
unusual_freecom.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_isd200.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_jumpshot.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_karma.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_onetouch.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_realtek.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_sddr09.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_sddr55.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_uas.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_usbat.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
usb.c USB: storage: refactor endpoint retrieval 2017-03-23 13:54:08 +01:00
usb.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
usual-tables.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00