mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-25 10:29:51 +00:00
fix sheep_net kernel panic when combined with Linux AppleTalk module
This commit is contained in:
parent
9ae8499d64
commit
c5dc44e117
@ -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? */
|
/* Is this packet addressed solely to the local host? */
|
||||||
if (is_local_addr(v, skb->data) && !(skb->data[0] & ETH_ADDR_MULTICAST)) {
|
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);
|
skb->protocol = eth_type_trans(skb, v->ether);
|
||||||
netif_rx(skb);
|
netif_rx(skb);
|
||||||
return count;
|
return count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user