Re: [PATCH] ethernet: (niu) fix missing checks of niu_pci_eeprom_read

2018-12-27 Thread David Miller
From: Kangjie Lu Date: Tue, 25 Dec 2018 01:56:14 -0600 > niu_pci_eeprom_read() may fail, so we should check its return value > before using the read data. > > Signed-off-by: Kangjie Lu Applied.

Re: [PATCH] ethernet: (niu) fix missing checks of niu_pci_eeprom_read

2018-12-26 Thread Shannon Nelson
On Mon, Dec 24, 2018 at 11:58 PM Kangjie Lu wrote: > > niu_pci_eeprom_read() may fail, so we should check its return value > before using the read data. > > Signed-off-by: Kangjie Lu > --- > drivers/net/ethernet/sun/niu.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(-) > > dif

[PATCH] ethernet: (niu) fix missing checks of niu_pci_eeprom_read

2018-12-24 Thread Kangjie Lu
niu_pci_eeprom_read() may fail, so we should check its return value before using the read data. Signed-off-by: Kangjie Lu --- drivers/net/ethernet/sun/niu.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/ni