From: Bryan Whitehead <bryan.whiteh...@microchip.com>
Date: Mon, 11 Mar 2019 13:39:39 -0400

> @@ -2290,7 +2306,9 @@ static int lan743x_rx_ring_init(struct lan743x_rx *rx)
>  
>       rx->last_head = 0;
>       for (index = 0; index < rx->ring_size; index++) {
> -             ret = lan743x_rx_allocate_ring_element(rx, index);
> +             struct sk_buff *new_skb = lan743x_rx_allocate_skb(rx);
> +
> +             ret = lan743x_rx_init_ring_element(rx, index, new_skb);

Need to check new_skb for NULL.

Again....

Reply via email to