diff options
author | Du Cheng <[email protected]> | 2021-05-03 13:56:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-05-13 17:33:24 +0200 |
commit | e6e337708c22f80824b82d4af645f20715730ad0 (patch) | |
tree | 68ffc4ac276be07aed6f01cdf87e83fe069eecb5 /scripts/gdb/linux/lists.py | |
parent | 7930742d6a0ff091c85b92ef4e076432d8d8cb79 (diff) |
ethernet: sun: niu: fix missing checks of niu_pci_eeprom_read()
niu_pci_eeprom_read() may fail, so add checks to its return value and
propagate the error up the callstack.
An examination of the callstack up to niu_pci_eeprom_read shows that:
niu_pci_eeprom_read() // returns int
niu_pci_vpd_scan_props() // returns int
niu_pci_vpd_fetch() // returns *void*
niu_get_invariants() // returns int
since niu_pci_vpd_fetch() returns void which breaks the bubbling up,
change its return type to int so that error is propagated upwards.
Signed-off-by: Du Cheng <[email protected]>
Cc: Shannon Nelson <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions