1 This is copy and paste from the original driver. As skb_reserve() is
2 also called within korina_alloc_ring() when initially allocating the
3 receive descriptors, the same should be done when allocating new space
4 after passing an skb to upper layers.
6 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
8 drivers/net/korina.c | 3 +++
9 1 files changed, 3 insertions(+), 0 deletions(-)
11 diff --git a/drivers/net/korina.c b/drivers/net/korina.c
12 index 67fbdf4..60ae7bf 100644
13 --- a/drivers/net/korina.c
14 +++ b/drivers/net/korina.c
15 @@ -416,6 +416,9 @@ static int korina_rx(struct net_device *dev, int limit)
16 if (devcs & ETH_RX_MP)
17 dev->stats.multicast++;
20 + skb_reserve(skb_new, 2);
22 lp->rx_skb[lp->rx_next_done] = skb_new;