linux-brain/drivers/net/ethernet/sun
Paul Jakma 6b313d0ffa NIU: fix incorrect error return, missed in previous revert
commit 15bbf8bb4d4ab87108ecf5f4155ec8ffa3c141d6 upstream.

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 <kjlu@umn.edu>
Cc: Shannon Nelson <shannon.lee.nelson@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable <stable@vger.kernel.org>
Fixes: 7930742d ('Revert "niu: fix missing checks of niu_pci_eeprom_read"')
Signed-off-by: Paul Jakma <paul@jakma.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-04 12:27:38 +02:00
..
Kconfig
Makefile
cassini.c net: sun: fix missing release regions in cas_init_one(). 2020-06-03 08:21:06 +02:00
cassini.h net: sun: cassini: Cleanup license conflict 2019-01-22 11:22:07 -08:00
ldmvsw.c net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
niu.c NIU: fix incorrect error return, missed in previous revert 2021-08-04 12:27:38 +02:00
niu.h
sunbmac.c net: sun: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles 2019-02-06 17:38:15 -08:00
sunbmac.h
sungem.c net: sungem: fix indentation, remove a tab 2019-01-16 14:04:59 -08:00
sungem.h
sunhme.c net: sun: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles 2019-02-06 17:38:15 -08:00
sunhme.h
sunqe.c net: sun: fix return type of ndo_start_xmit function 2018-09-19 21:17:58 -07:00
sunqe.h
sunvnet.c net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
sunvnet_common.c sunvnet: use icmp_ndo_send helper 2021-03-04 10:26:53 +01:00
sunvnet_common.h net: sun: fix return type of ndo_start_xmit function 2018-09-19 21:17:58 -07:00