WSL2-Linux-Kernel/drivers/net/ethernet/i825xx
Miaoqian Lin 42de0446a1 lib82596: Fix IRQ check in sni_82596_probe
commit 99218cbf81 upstream.

platform_get_irq() returns negative error number instead 0 on failure.
And the doc of platform_get_irq() provides a usage example:

    int irq = platform_get_irq(pdev, 0);
    if (irq < 0)
        return irq;

Fix the check of return value to catch errors correctly.

Fixes: 1159788592 ("i825xx: Move the Intel 82586/82593/82596 based drivers")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 11:05:43 +01:00
..
82596.c net: i825xx: Use absolute_pointer for memcpy from fixed memory location 2021-09-15 12:04:28 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
ether1.c drivers: net: ethernet: i825xx: Fix couple of spellings in the file ether1.c 2021-02-04 19:07:55 -08:00
ether1.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
lasi_82596.c parisc: Make struct parisc_driver::remove() return void 2021-08-30 10:18:25 +02:00
lib82596.c lib82596: convert to dma_alloc_noncoherent 2020-09-25 06:20:45 +02:00
sni_82596.c lib82596: Fix IRQ check in sni_82596_probe 2022-01-27 11:05:43 +01:00
sun3_82586.c net/sun3_82586: Fix return value of sun3_82586_probe() 2021-09-02 11:29:02 +01:00
sun3_82586.h