]> git.baikalelectronics.ru Git - kernel.git/commit
net: netxen: fix a missing check and an uninitialized use
authorKangjie Lu <kjlu@umn.edu>
Fri, 21 Dec 2018 06:22:32 +0000 (00:22 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Dec 2018 17:01:47 +0000 (09:01 -0800)
commitaacd9a8d258fa624905d804cfe9ecf8d01f42143
treeea068e4e901b4d391436c58352a3b37ffd1123a8
parentd120271cc8c318edd9712923bb857d797ffc804c
net: netxen: fix a missing check and an uninitialized use

When netxen_rom_fast_read() fails, "bios" is left uninitialized and may
contain random value, thus should not be used.

The fix ensures that if netxen_rom_fast_read() fails, we return "-EIO".

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c