]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:06 +0000 (22:32 -0700)
commit537f8f6f4805b88c8e27a410236b5ec2057d51db
tree2255db112d23a144f4423ea606c9897c711f3bda
parent4db28d7fc6a7ae493c206ff35dd51852f6e90b22
qed: Fix uninitialized data in aRFS infrastructure

Orabug: 26783820

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: d51e4af5c209 ("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>
[ Upstream commit aa4ad88cfcd4ee45f527fb982140576711e3b501 ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c