Commit b885aab3 authored by Michael Trimarchi's avatar Michael Trimarchi Committed by Paolo Abeni
Browse files

net: fec: Avoid allocating rx buffer using ATOMIC in ndo_open

parent d935053a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3076,7 +3076,7 @@ fec_enet_alloc_rxq_buffers(struct net_device *ndev, unsigned int queue)
	rxq = fep->rx_queue[queue];
	bdp = rxq->bd.base;
	for (i = 0; i < rxq->bd.ring_size; i++) {
		skb = netdev_alloc_skb(ndev, FEC_ENET_RX_FRSIZE);
		skb = __netdev_alloc_skb(ndev, FEC_ENET_RX_FRSIZE, GFP_KERNEL);
		if (!skb)
			goto err_alloc;