Unverified Commit a3c34bec authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14157 net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()

parents 7c2e8449 684ba26a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1015,6 +1015,7 @@ sun3_82586_send_packet(struct sk_buff *skb, struct net_device *dev)
	if(skb->len > XMIT_BUFF_SIZE)
	{
		printk("%s: Sorry, max. framelength is %d bytes. The length of your frame is %d bytes.\n",dev->name,XMIT_BUFF_SIZE,skb->len);
		dev_kfree_skb(skb);
		return NETDEV_TX_OK;
	}