Repository navigation
Commit 26fd962
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: Kangjie Lu <kjlu@umn.edu>
Acked-by: Shannon Nelson <shannon.lee.nelson@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent ca19fcb commit 26fd962
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8100 | 8100 | | |
8101 | 8101 | | |
8102 | 8102 | | |
| 8103 | + | |
| 8104 | + | |
8103 | 8105 | | |
8104 | 8106 | | |
8105 | 8107 | | |
| |||
8144 | 8146 | | |
8145 | 8147 | | |
8146 | 8148 | | |
8147 | | - | |
8148 | | - | |
| 8149 | + | |
| 8150 | + | |
| 8151 | + | |
| 8152 | + | |
| 8153 | + | |
| 8154 | + | |
8149 | 8155 | | |
8150 | 8156 | | |
8151 | 8157 | | |
| |||
0 commit comments