summaryrefslogtreecommitdiff
path: root/scripts/Makefile.kcsan
diff options
context:
space:
mode:
authorDu Cheng <ducheng2@gmail.com>2021-05-03 13:56:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-13 17:33:24 +0200
commite6e337708c22f80824b82d4af645f20715730ad0 (patch)
tree68ffc4ac276be07aed6f01cdf87e83fe069eecb5 /scripts/Makefile.kcsan
parent7930742d6a0ff091c85b92ef4e076432d8d8cb79 (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 <ducheng2@gmail.com> Cc: Shannon Nelson <shannon.lee.nelson@gmail.com> Cc: David S. Miller <davem@davemloft.net> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210503115736.2104747-24-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.kcsan')
0 files changed, 0 insertions, 0 deletions