niu: fix missing checks of niu_pci_eeprom_read
niu_pci_eeprom_read() may fail, so we should check its return value before using the read data. Signed-off-by: NKangjie Lu <kjlu@umn.edu> Acked-by: NShannon Nelson <shannon.lee.nelson@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录