commit | 154b7716f9aaf55a8307e464069d25cf5830f6e3 | [log] [tgz] |
---|---|---|
author | Kangjie Lu <kjlu@umn.edu> | Fri Dec 21 00:22:32 2018 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Jan 13 10:03:50 2019 +0100 |
tree | f3f0c7bfcd2c94ac6101e3daa17b03924829f866 | |
parent | 5d036c3ad4bcb100b98640e78ee2fd5f9ec634f0 [diff] |
net: netxen: fix a missing check and an uninitialized use [ Upstream commit d134e486e831defd26130770181f01dfc6195f7d ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>