]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: microchip: lan743x: Fix skb allocation failure
authorYuiko Oshino <yuiko.oshino@microchip.com>
Wed, 27 Oct 2021 18:23:02 +0000 (14:23 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 13:45:07 +0000 (14:45 +0100)
commit3b6ff75dc52264494f657bf40d4e9f71da693a86
treee919ae09f3edff8ddb4d897e1661b8cd74bf1d69
parent088e7bd6ae0cb0aa6c44599fc214564e937a06c6
net: ethernet: microchip: lan743x: Fix skb allocation failure

The driver allocates skb during ndo_open with GFP_ATOMIC which has high chance of failure when there are multiple instances.
GFP_KERNEL is enough while open and use GFP_ATOMIC only from interrupt context.

Fixes: 308800c59cf1 ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_main.c