fix sheep_net kernel panic when combined with Linux AppleTalk module

This commit is contained in:
Masaq- 2015-06-20 01:54:50 +00:00
parent 9ae8499d64
commit c5dc44e117

View File

@ -489,6 +489,7 @@ static ssize_t sheep_net_write(struct file *f, const char *buf, size_t count, lo
/* Is this packet addressed solely to the local host? */
if (is_local_addr(v, skb->data) && !(skb->data[0] & ETH_ADDR_MULTICAST)) {
skb->destructor = do_nothing;
skb->protocol = eth_type_trans(skb, v->ether);
netif_rx(skb);
return count;