OpenCloudOS-Kernel/drivers/scsi/sym53c8xx_2
Dan Carpenter e6f791d953 scsi: sym53c8xx_2: iterator underflow in sym_getsync()
We wanted to exit the loop with "div" set to zero, but instead, if we
don't hit the break then "div" is -1 when we finish the loop.  It leads
to an array underflow a few lines later.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-01-30 21:29:16 -05:00
..
Makefile
sym53c8xx.h
sym_defs.h
sym_fw.c
sym_fw.h
sym_fw1.h Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_fw2.h Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_glue.c treewide: setup_timer() -> timer_setup() (2 field) 2017-11-21 15:57:09 -08:00
sym_glue.h treewide: Fix common typo in "identify" 2013-10-14 15:31:06 +02:00
sym_hipd.c scsi: sym53c8xx_2: iterator underflow in sym_getsync() 2018-01-30 21:29:16 -05:00
sym_hipd.h scsi: use 64-bit LUNs 2014-07-17 22:07:37 +02:00
sym_malloc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_misc.h
sym_nvram.c
sym_nvram.h