linux-bl808/drivers/net/ethernet/microchip
Bryan Whitehead dd9d9f5907 lan743x: Fix RX Kernel Panic
It has been noticed that running the speed test at
www.speedtest.net occasionally causes a kernel panic.

Investigation revealed that under this test RX buffer allocation
sometimes fails and returns NULL. But the lan743x driver did
not handle this case.

This patch fixes this issue by attempting to allocate a buffer
before sending the new rx packet to the OS. If the allocation
fails then the new rx packet is dropped and the existing buffer
is reused in the DMA ring.

Updates for v2:
    Additional 2 locations where allocation was not checked,
        has been changed to reuse existing buffer.

Fixes: 23f0703c12 ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Bryan Whitehead <Bryan.Whitehead@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-11 12:20:20 -07:00
..
enc28j60.c enc28j60: Correct description of debug module parameter 2019-02-27 09:35:24 -08:00
enc28j60_hw.h
encx24j600-regmap.c
encx24j600.c
encx24j600_hw.h
Kconfig lan743x: Remove SPI dependency from Microchip group. 2018-10-25 16:20:48 -07:00
lan743x_ethtool.c lan743x: Provide Read/Write Access to on chip OTP 2019-01-26 09:35:21 -08:00
lan743x_ethtool.h
lan743x_main.c lan743x: Fix RX Kernel Panic 2019-03-11 12:20:20 -07:00
lan743x_main.h lan743x: Provide Read/Write Access to on chip OTP 2019-01-26 09:35:21 -08:00
lan743x_ptp.c
lan743x_ptp.h
Makefile