]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Fix copy of uninitialized memory
authorrobert.foss@collabora.com <robert.foss@collabora.com>
Tue, 7 Mar 2017 16:46:25 +0000 (11:46 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 26 Jul 2017 03:46:40 +0000 (20:46 -0700)
commit4c94560a4f00c54fd5bca7418539125b748e8f3f
tree653b7e23b000e32515375686d1a1acc1066e5dbe
parent4ecb09527740474b327161ea5fe4d70e3a235f14
qed: Fix copy of uninitialized memory

Orabug: 2593305326439680

In qed_ll2_start_ooo() the ll2_info variable is uninitialized and then
passed to qed_ll2_acquire_connection() where it is copied into a new
memory space.

This shouldn't cause any issue as long as non of the copied memory is
every read.
But the potential for a bug being introduced by reading this memory
is real.

Detected by CoverityScan, CID#1399632 ("Uninitialized scalar variable")

Signed-off-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_ll2.c