Re: [PATCH] net: netxen: fix a missing check and an uninitialized use

From: David Miller
Date: Fri Dec 21 2018 - 12:02:05 EST


From: Kangjie Lu <kjlu@xxxxxxx>
Date: Fri, 21 Dec 2018 00:22:32 -0600

> 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@xxxxxxx>

Applied, thanks.