android_kernel_xiaomi_sm8350/drivers/scsi
Ishai Rabinovitz 454e8957eb [SCSI] sg.c: Fix bad error handling in
I got a NULL derefrence in cdev_del+1 when called from sg_remove. By looking at
the code of sg_add, sg_alloc and sg_remove (all in drivers/scsi/sg.c) I found
out that sg_add is calling sg_alloc but if it fails afterwards it does not
deallocate the space that was allocated in sg_alloc and the redundant entry has
NULL in cdev. When sg_remove is being called, it tries to perform cdev_del to
this NULL cdev and fails.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Acked-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2006-06-30 21:28:35 -05:00
..
aacraid [SCSI] aacraid: remove x86_64 IOMMU dependent code 2006-06-26 16:47:46 -05:00
aic7xxx [SCSI] aic79xx: remove slave_destroy 2006-06-26 09:59:18 -05:00
aic7xxx_old
arm [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
dpt
ibmvscsi [SCSI] ibmvscsi: treat busy and error conditions separately 2006-06-26 09:15:41 -05:00
lpfc [SCSI] Block I/O while SG reset operation in progress - lpfc portion 2006-06-27 10:51:12 -05:00
megaraid [SCSI] megaraid_sas: zcr with fix 2006-06-26 09:29:07 -05:00
pcmcia [SCSI] random: remove redundant SA_SAMPLE_RANDOM from NinjaSCSI 2006-06-26 16:33:45 -05:00
qla2xxx Merge ../linux-2.6/ 2006-06-28 14:06:39 -04:00
sym53c8xx_2 Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2006-06-21 11:18:25 -07:00
.gitignore
3w-9xxx.c [SCSI] fix up request buffer reference in various scsi drivers 2006-06-06 11:07:25 -04:00
3w-9xxx.h [SCSI] 3ware 9000 add big endian support 2006-03-19 10:18:42 -06:00
3w-xxxx.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
3w-xxxx.h [SCSI] sem2mutex 3w-[x9]xxx 2006-01-14 10:55:12 -06:00
53c7xx_d.h_shipped
53c7xx_u.h_shipped
53c7xx.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
53c7xx.h
53c7xx.scr
53c700_d.h_shipped
53c700.c [SCSI] 53c700: fix breakage caused by the autosense update 2006-06-29 13:15:15 -04:00
53c700.h [SCSI] 53c700: fix breakage caused by the autosense update 2006-06-29 13:15:15 -04:00
53c700.scr
a100u2w.c [PATCH] Replace 0xff.. with correct DMA_xBIT_MASK 2006-03-28 09:16:07 -08:00
a100u2w.h
a2091.c
a2091.h
a3000.c
a3000.h
advansys.c spelling fixes 2006-06-26 18:35:02 +02:00
advansys.h
aha152x.c Merge ../linux-2.6 2006-03-14 14:18:01 -06:00
aha152x.h [SCSI] aha152x: fix variable use before initialisation and other bugs 2006-02-28 11:20:45 -06:00
aha1542.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
aha1542.h
aha1740.c
aha1740.h
ahci.c [libata] Bump versions 2006-06-26 20:41:33 -04:00
aic7xxx_old.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
amiga7xx.c
amiga7xx.h
ata_piix.c [libata] Bump versions 2006-06-26 20:41:33 -04:00
atari_dma_emul.c
atari_NCR5380.c
atari_scsi.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
atari_scsi.h
atp870u.c [SCSI] atp870u: reduce huge stack usage 2006-06-28 12:43:20 -04:00
atp870u.h
blz1230.c
blz2060.c
BusLogic.c [PATCH] Replace 0xff.. with correct DMA_xBIT_MASK 2006-03-28 09:16:07 -08:00
BusLogic.h
bvme6000.c
bvme6000.h
ch.c [SCSI] MODULE_ALIAS_{BLOCK,CHAR}DEV_MAJOR for drivers/scsi 2006-03-12 09:11:16 -06:00
constants.c [SCSI] remove scsi_request infrastructure 2006-06-10 16:24:40 -05:00
cyberstorm.c
cyberstormII.c
dc395x.c spelling fixes 2006-06-26 18:35:02 +02:00
dc395x.h
dec_esp.c
dmx3191d.c [SCSI] dmx3191d: fix a NULL pointer dereference 2006-03-12 09:45:56 -06:00
dpt_i2o.c [PATCH] Replace 0xff.. with correct DMA_xBIT_MASK 2006-03-28 09:16:07 -08:00
dpti.h
dtc.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
dtc.h
eata_generic.h
eata_pio.c
eata_pio.h
eata.c [PATCH] Replace 0xff.. with correct DMA_xBIT_MASK 2006-03-28 09:16:07 -08:00
esp.c [SCSI] esp: Fix bug in esp_remove_common. 2006-06-23 23:16:13 -07:00
esp.h [SCSI] sparc: Port esp to new SBUS driver layer. 2006-06-23 23:15:54 -07:00
fastlane.c
fcal.c
fcal.h
fd_mcs.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
fdomain.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
fdomain.h
FlashPoint.c [SCSI] drivers/scsi/FlashPoint.c: don't use parenthesis with "return" 2006-03-12 09:18:47 -06:00
g_NCR5380_mmio.c
g_NCR5380.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
g_NCR5380.h [PATCH] remove ISA legacy functions: drivers/scsi/g_NCR5380.c 2006-03-24 07:33:19 -08:00
gdth_ioctl.h
gdth_kcompat.h [SCSI] remove the scsi_request interface from the gdth driver 2006-06-10 10:24:40 -05:00
gdth_proc.c [SCSI] remove the scsi_request interface from the gdth driver 2006-06-10 10:24:40 -05:00
gdth_proc.h [SCSI] remove the scsi_request interface from the gdth driver 2006-06-10 10:24:40 -05:00
gdth.c [SCSI] remove scsi_request infrastructure 2006-06-10 16:24:40 -05:00
gdth.h [SCSI] remove the scsi_request interface from the gdth driver 2006-06-10 10:24:40 -05:00
gvp11.c
gvp11.h
hosts.c [PATCH] move ->eh_strategy_handler to the transport class 2006-04-10 14:15:47 -04:00
hosts.h
hptiop.c [SCSI] hptiop: don't use cmnd->bufflen 2006-06-19 19:32:04 -05:00
hptiop.h [SCSI] hptiop: HighPoint RocketRAID 3xxx controller driver 2006-06-10 10:36:13 -05:00
ibmmca.c spelling fixes 2006-06-26 18:35:02 +02:00
ibmmca.h
ide-scsi.c [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
imm.c remove the bouncing email address of David Campbell 2006-06-26 18:19:23 +02:00
imm.h remove the bouncing email address of David Campbell 2006-06-26 18:19:23 +02:00
in2000.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
in2000.h
initio.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
initio.h
ipr.c [SCSI] remove scsi_request infrastructure 2006-06-10 16:24:40 -05:00
ipr.h [SCSI] ipr: Bump version 2006-04-13 10:13:30 -05:00
ips.c spelling fixes 2006-06-26 18:35:02 +02:00
ips.h
iscsi_tcp.c [SCSI] iscsi: convert iscsi_tcp to new set/get param fns 2006-06-29 11:07:54 -04:00
iscsi_tcp.h [SCSI] iscsi: kill dtask mempools 2006-05-20 09:35:20 -05:00
jazz_esp.c Merge ../linux-2.6 2006-03-14 14:18:01 -06:00
Kconfig [PATCH] ata_piix: add ICH6/7/8 to Kconfig 2006-06-26 21:02:37 -04:00
lasi700.c [PARISC] I/O-Space must be ioremap_nocache()'d 2006-03-30 17:48:42 +00:00
libata-bmdma.c [libata] Add host lock to struct ata_port 2006-06-22 23:46:10 -04:00
libata-core.c Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev 2006-06-27 19:07:21 -07:00
libata-eh.c [PATCH] libata: clear EH action on device detach 2006-06-26 20:59:27 -04:00
libata-scsi.c [PATCH] Remove redundant NULL checks before [kv]free - in drivers/ 2006-06-27 17:32:48 -07:00
libata.h [PATCH] libata: make two functions global 2006-06-26 20:59:27 -04:00
libiscsi.c [SCSI] iscsi: pass target nr to session creation 2006-06-29 11:09:06 -04:00
mac53c94.c [PATCH] drivers/scsi/mac53c94.c __iomem annotations 2006-02-07 20:57:14 -05:00
mac53c94.h
mac_esp.c [PATCH] m68k: convert mac irq code 2006-06-25 10:00:58 -07:00
mac_scsi.c [PATCH] m68k: convert mac irq code 2006-06-25 10:00:58 -07:00
mac_scsi.h
Makefile Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband 2006-06-25 16:07:58 -07:00
mca_53c9x.c
megaraid.c [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
megaraid.h [SCSI] megaraid_legacy: kobject_register failure 2006-02-12 11:11:09 -06:00
mesh.c [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
mesh.h
mvme16x.c
mvme16x.h
mvme147.c
mvme147.h
ncr53c8xx.c [PATCH] drivers: use list_move() 2006-06-26 09:58:18 -07:00
ncr53c8xx.h [SCSI] ncr53c8xx update 2006-02-27 22:55:08 -06:00
NCR53c406a.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
NCR53C9x.c
NCR53C9x.h
NCR5380.c spelling fixes 2006-06-26 18:35:02 +02:00
NCR5380.h
NCR_D700.c [SCSI] NCR_D700: fix a NULL dereference 2006-03-12 09:45:43 -06:00
NCR_D700.h
NCR_Q720.c
NCR_Q720.h
nsp32_debug.c
nsp32_io.h
nsp32.c [SCSI] random: remove redundant SA_SAMPLE_RANDOM from NinjaSCSI 2006-06-26 16:33:45 -05:00
nsp32.h
oktagon_esp.c
oktagon_io.S
osst_detect.h
osst_options.h
osst.c [PATCH] vfs: add lock owner argument to flush operation 2006-06-23 07:43:02 -07:00
osst.h [SCSI] osst: changes required to move forward to block request 2006-03-07 09:16:01 -06:00
pas16.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
pas16.h
pci2000.h
pdc_adma.c [PATCH] libata: add missing ->data_xfer for pdc_adma 2006-06-11 10:21:13 -04:00
pluto.c [SCSI] remove RQ_SCSI_* flags 2006-06-10 16:25:21 -05:00
pluto.h
ppa.c remove the bouncing email address of David Campbell 2006-06-26 18:19:23 +02:00
ppa.h remove the bouncing email address of David Campbell 2006-06-26 18:19:23 +02:00
psi240i.c
psi240i.h
psi_chip.h
ql1040_fw.h
ql1280_fw.h
ql12160_fw.h
qla1280.c [PATCH] PCI: Move various PCI IDs to header file 2006-06-21 12:00:00 -07:00
qla1280.h
qlogicfas408.c
qlogicfas408.h
qlogicfas.c
qlogicpti_asm.c
qlogicpti.c [SCSI] qlogicpti: Convert to new SBUS device framework. 2006-06-23 23:16:15 -07:00
qlogicpti.h
raid_class.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
sata_mv.c Merge branch 'upstream-fixes' into upstream 2006-06-11 23:04:37 -04:00
sata_nv.c [libata] Bump versions 2006-06-26 20:41:33 -04:00
sata_promise.c [PATCH] libata-hp: hook warmplug 2006-05-31 18:28:09 +09:00
sata_promise.h
sata_qstor.c [PATCH] libata-hp: hook warmplug 2006-05-31 18:28:09 +09:00
sata_sil24.c [libata] Bump versions 2006-06-26 20:41:33 -04:00
sata_sil.c [PATCH] sata_sil: disable hotplug interrupts on two ATI IXPs 2006-06-26 21:02:36 -04:00
sata_sis.c [PATCH] libata: convert several bmdma-style controllers to new EH, take #3 2006-06-20 05:12:15 -04:00
sata_svw.c [libata] Bump versions 2006-06-26 20:41:33 -04:00
sata_sx4.c [PATCH] libata-hp: hook warmplug 2006-05-31 18:28:09 +09:00
sata_uli.c [libata] Bump versions 2006-06-26 20:41:33 -04:00
sata_via.c [libata] Bump versions 2006-06-26 20:41:33 -04:00
sata_vsc.c [libata] sata_vsc: partially revert a PCI ID-related commit 2006-06-26 20:52:17 -04:00
script_asm.pl
scsi_debug.c [SCSI] scsi_debug version 1.79 2006-06-26 09:12:42 -05:00
scsi_debug.h
scsi_devinfo.c [SCSI] HP XP devinfo update 2006-06-26 09:30:00 -05:00
scsi_error.c [SCSI] Block I/O while SG reset operation in progress - the midlayer patch 2006-06-27 10:48:11 -05:00
scsi_ioctl.c [SCSI] remove scsi_request infrastructure 2006-06-10 16:24:40 -05:00
scsi_lib.c [SCSI] scsi: Device scanning oops for offlined devices (resend) 2006-06-28 12:39:56 -04:00
scsi_logging.h [SCSI] scsi_scan.c: fix compile warnings 2006-04-15 09:04:40 -05:00
scsi_module.c
scsi_priv.h [SCSI] update max sdev block limit 2006-06-27 10:53:55 -05:00
scsi_proc.c [SCSI] fix proc_scsi_write to return "length" on success with remove-single-device case 2006-05-10 10:22:30 -05:00
scsi_sas_internal.h [SCSI] scsi_transport_sas: introduce a sas_port entity 2006-06-28 12:40:54 -04:00
scsi_scan.c [SCSI] scsi: Device scanning oops for offlined devices (resend) 2006-06-28 12:39:56 -04:00
scsi_sysctl.c
scsi_sysfs.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
scsi_transport_api.h [PATCH] SCSI: make scsi_implement_eh() generic API for SCSI transports 2006-05-20 00:39:08 -04:00
scsi_transport_fc.c [SCSI] fc transport: bug fix: correct references 2006-06-27 11:01:46 -05:00
scsi_transport_iscsi.c [SCSI] iscsi: add async notification of session events 2006-06-29 11:14:42 -04:00
scsi_transport_sas.c [SCSI] scsi_transport_sas: introduce a sas_port entity 2006-06-28 12:40:54 -04:00
scsi_transport_spi.c [SCSI] spi transport: don't allow dt to be set on SE or HVD buses 2006-06-10 10:51:23 -05:00
scsi_typedefs.h [SCSI] remove scsi_request infrastructure 2006-06-10 16:24:40 -05:00
scsi.c Merge branch 'master' into upstream 2006-06-22 22:11:56 -04:00
scsi.h [SCSI] remove scsi_request infrastructure 2006-06-10 16:24:40 -05:00
scsicam.c [SCSI] Bogus disk geometry on large disks 2006-06-26 16:33:10 -05:00
sd.c [SCSI] scsi: Add allow_restart sysfs class attribute 2006-06-28 12:39:06 -04:00
seagate.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
seagate.h
sg.c [SCSI] sg.c: Fix bad error handling in 2006-06-30 21:28:35 -05:00
sgiwd93.c [SCSI] Make sgiwd93_detect and sgiwd93_detect static. 2006-03-12 09:24:55 -06:00
sim710.c [SCSI] Overrun in drivers/scsi/sim710.c 2006-04-19 20:51:38 -04:00
sr_ioctl.c [PATCH] kill cdrom ->dev_ioctl method 2006-03-23 07:38:09 -08:00
sr_vendor.c
sr.c [SCSI] sd/scsi_lib simplify sd_rw_intr and scsi_io_completion 2006-06-26 10:00:20 -05:00
sr.h [PATCH] kill cdrom ->dev_ioctl method 2006-03-23 07:38:09 -08:00
st_options.h
st.c [SCSI] st: remove unused st_buffer.in_use 2006-06-29 11:06:30 -04:00
st.h [SCSI] st: remove unused st_buffer.in_use 2006-06-29 11:06:30 -04:00
sun3_NCR5380.c
sun3_scsi_vme.c
sun3_scsi.c
sun3_scsi.h
sun3x_esp.c [PATCH] m68k: Add the generic dma API functions 2006-06-25 10:00:56 -07:00
sym53c416.c
sym53c416.h
t128.c [SCSI] drivers/scsi: Use ARRAY_SIZE macro 2006-06-10 10:45:30 -05:00
t128.h
tmscsim.c
tmscsim.h
u14-34f.c
ultrastor.c
ultrastor.h
wd33c93.c [PATCH] m68k: wd33c93: extra delay 2006-06-23 07:43:01 -07:00
wd33c93.h
wd7000.c [PATCH] wd7000: fix section mismatch warnings 2006-06-25 10:01:09 -07:00
zalon.c [PARISC] I/O-Space must be ioremap_nocache()'d 2006-03-30 17:48:42 +00:00