Star64_linux/drivers/message/fusion
Ferenc Wagner 8af3d8d5bc [SCSI] fusion: ensure NUL-termination of MptCallbacksName elements
Using strlcpy instead of memcpy makes the strlen() calls superfluous
and also ensures zero-termination of the copied string.
At the same time get rid of the magic constant 50.

Actually, I can't see why copying the callback name is necessary
instead of simply storing a pointer to it (just like to the callback
function itself), but that goes beyond the scope of this fix.

Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-12-15 10:57:29 +04:00
..
lsi
Kconfig
Makefile
mptbase.c [SCSI] fusion: ensure NUL-termination of MptCallbacksName elements 2011-12-15 10:57:29 +04:00
mptbase.h [SCSI] fusion: ensure NUL-termination of MptCallbacksName elements 2011-12-15 10:57:29 +04:00
mptctl.c
mptctl.h
mptdebug.h
mptfc.c
mptlan.c
mptlan.h
mptsas.c [SCSI] mptfusion: Fix for device offline while doing aggressive HBA reset 2011-08-27 08:35:53 -06:00
mptsas.h
mptscsih.c [SCSI] mptfusion: Added check for SILI bit in READ_16 CDB for DATA UNDERRUN ERRATA 2011-09-22 15:15:08 +04:00
mptscsih.h [SCSI] mptfusion: Better handling of DEAD IOC PCI-E Link down error condition 2011-08-27 08:35:16 -06:00
mptspi.c