Merge pull request #74 from Masaq-/sheep_net

fix sheep_net kernel panic when combined with Linux AppleTalk module
This commit is contained in:
asvitkine 2015-06-20 20:11:28 -04:00
commit 339c421787

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;