]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix uninitialized data in aRFS infrastructure
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Sun, 14 May 2017 09:21:23 +0000 (12:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 May 2017 18:31:27 +0000 (14:31 -0400)
commit4eea6b4a46c23a30cc1b1a0d95ea21b4e7c5d526
tree586f932ca41323471d46c8ef1d3b3f12c030c41b
parentfffa1b5dcd8cf2612ff375222ac76b8f9812d9e3
qed: Fix uninitialized data in aRFS infrastructure

Current memset is using incorrect type of variable, causing the
upper-half of the strucutre to be left uninitialized and causing:

  ethernet/qlogic/qed/qed_init_fw_funcs.c: In function 'qed_set_rfs_mode_disable':
  ethernet/qlogic/qed/qed_init_fw_funcs.c:993:3: error: '*((void *)&ramline+4)' is used uninitialized in this function [-Werror=uninitialized]

Fixes: bffa1b5c430b ("qed: aRFS infrastructure support")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c