aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/e_powersaver.c
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2012-09-03 20:50:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-28 16:18:45 -0700
commitad4beaccb0882af065befc18665f461d9711a2d4 (patch)
treec2a5a311321e7a279f48b660d09a7d9cd4256ffd /drivers/cpufreq/e_powersaver.c
parentd45ff5f89c087a667290048c24deaeb27fa43ba0 (diff)
downloadkernel_samsung_smdk4412-ad4beaccb0882af065befc18665f461d9711a2d4.tar.gz
kernel_samsung_smdk4412-ad4beaccb0882af065befc18665f461d9711a2d4.tar.bz2
kernel_samsung_smdk4412-ad4beaccb0882af065befc18665f461d9711a2d4.zip
SCSI: Fix incorrect memset in bnx2fc_parse_fcp_rsp
commit 16da05b1158d1bcb31656e636a8736a663b1cf1f upstream. 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> Cc: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cpufreq/e_powersaver.c')
0 files changed, 0 insertions, 0 deletions