linux/drivers/scsi/arm
Arnd Bergmann 96d5eaa9bb scsi: fas216: fix sense buffer initialization
While testing with the ARM specific memset() macro removed, I ran into a
compiler warning that shows an old bug:

drivers/scsi/arm/fas216.c: In function 'fas216_rq_sns_done':
drivers/scsi/arm/fas216.c:2014:40: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]

It turns out that the definition of the scsi_cmd structure changed back
in linux-2.6.25, so now we clear only four bytes (sizeof(pointer))
instead of 96 (SCSI_SENSE_BUFFERSIZE). I did not check whether we
actually need to initialize the buffer here, but it's clear that if we
do it, we should use the correct size.

Fixes: de25deb180 ("[SCSI] use dynamically allocated sense buffer")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-01-22 20:04:01 -05:00
..
acornscsi-io.S
acornscsi.c scsi: acornscsi: fix build error 2017-09-14 21:02:03 -04:00
acornscsi.h
arxescsi.c
cumana_1.c scsi: NCR5380: Move bus reset to host reset 2017-08-25 17:21:11 -04:00
cumana_2.c
eesox.c
fas216.c scsi: fas216: fix sense buffer initialization 2018-01-22 20:04:01 -05:00
fas216.h
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
msgqueue.c
msgqueue.h
oak.c scsi: NCR5380: Move bus reset to host reset 2017-08-25 17:21:11 -04:00
powertec.c
queue.c
queue.h
scsi.h