diff options
author | Paul Jakma <[email protected]> | 2021-07-23 16:13:04 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-07-23 17:48:52 +0100 |
commit | 15bbf8bb4d4ab87108ecf5f4155ec8ffa3c141d6 (patch) | |
tree | 6206a738f6d33c2f9125dee2513fccef0578e999 /net/unix/unix_bpf.c | |
parent | 52f3456a96c06760b9bfae460e39596fec7af22e (diff) |
NIU: fix incorrect error return, missed in previous revert
Commit 7930742d6, reverting 26fd962, missed out on reverting an incorrect
change to a return value. The niu_pci_vpd_scan_props(..) == 1 case appears
to be a normal path - treating it as an error and return -EINVAL was
breaking VPD_SCAN and causing the driver to fail to load.
Fix, so my Neptune card works again.
Cc: Kangjie Lu <[email protected]>
Cc: Shannon Nelson <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: stable <[email protected]>
Fixes: 7930742d ('Revert "niu: fix missing checks of niu_pci_eeprom_read"')
Signed-off-by: Paul Jakma <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions