mbox series

[net,v2,0/3] net: lantiq_xrx200: fix errors under memory pressure

Message ID 20220815145740.12075-1-olek2@wp.pl (mailing list archive)
Headers show
Series net: lantiq_xrx200: fix errors under memory pressure | expand

Message

Aleksander Jan Bajkowski Aug. 15, 2022, 2:57 p.m. UTC
This series fixes issues that can occur in the driver under memory pressure.
Situations when the system cannot allocate memory are rare, so the mentioned bugs
have been fixed recently. The patches have been tested on a BT Home router with the
Lantiq xRX200 chipset.

Changelog:

  v2:
  - the second patch has been changed, so that under memory pressure situation
    the driver will not receive packets indefinitely regardless of the NAPI budget,
  - the third patch has been added.

Aleksander Jan Bajkowski (3):
  net: lantiq_xrx200: confirm skb is allocated before using
  net: lantiq_xrx200: fix lock under memory pressure
  net: lantiq_xrx200: restore buffer if memory allocation failed

 drivers/net/ethernet/lantiq_xrx200.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)