Merge tag 'v5.8' into drm-next
[linux-2.6-microblaze.git] / drivers / net / wan / hdlc_x25.c
index c84536b..f70336b 100644 (file)
@@ -71,8 +71,10 @@ static int x25_data_indication(struct net_device *dev, struct sk_buff *skb)
 {
        unsigned char *ptr;
 
-       if (skb_cow(skb, 1))
+       if (skb_cow(skb, 1)) {
+               kfree_skb(skb);
                return NET_RX_DROP;
+       }
 
        skb_push(skb, 1);
        skb_reset_network_header(skb);