Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d65a68a8 authored by Paulius Zaleckas's avatar Paulius Zaleckas Committed by David S. Miller
Browse files

hso: convert dev_alloc_skb() to netdev_alloc_skb()

parent b07878e5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -899,15 +899,14 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt,
					continue;
				}
				/* Allocate an sk_buff */
				odev->skb_rx_buf = dev_alloc_skb(frame_len);
				odev->skb_rx_buf = netdev_alloc_skb(odev->net,
								    frame_len);
				if (!odev->skb_rx_buf) {
					/* We got no receive buffer. */
					D1("could not allocate memory");
					odev->rx_parse_state = WAIT_SYNC;
					return;
				}
				/* Here's where it came from */
				odev->skb_rx_buf->dev = odev->net;

				/* Copy what we got so far. make room for iphdr
				 * after tail. */