summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2012-09-03 18:50:30 (GMT)
committerJames Bottomley <JBottomley@Parallels.com>2012-09-24 08:11:00 (GMT)
commit16da05b1158d1bcb31656e636a8736a663b1cf1f (patch)
treef531c586c81d985f0ed45f7aa2e5423be665d7be /samples
parent5e95e731115c391d36868cd36f499a8ce16c7959 (diff)
downloadlinux-fsl-qoriq-16da05b1158d1bcb31656e636a8736a663b1cf1f.tar.xz
[SCSI] Fix incorrect memset in bnx2fc_parse_fcp_rsp
gcc 4.8 warns because the memset only clears sizeof(char *) bytes, not the whole buffer. Use the correct buffer size and clear the whole sense buffer. /backup/lsrc/git/linux-lto-2.6/drivers/scsi/bnx2fc/bnx2fc_io.c: In function 'bnx2fc_parse_fcp_rsp': /backup/lsrc/git/linux-lto-2.6/drivers/scsi/bnx2fc/bnx2fc_io.c:1810:41: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(sc_cmd->sense_buffer, 0, sizeof(sc_cmd->sense_buffer)); ^ Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions