Re: oops in pre2.0.2

really kuznet@ms2.inr.ac.ru (inr-linux-kernel@ms2.inr.ac.ru)
19 May 1996 20:40:13 +0400


Robin Cutshaw (robin@intercore.COM) wrote:

: Just upgraded an SMP box to pre2.0.2 (compiled with SMP=1). Got this on
: boot:

: May 13 10:14:19 intrepid kernel: Unable to handle kernel NULL pointer dereference at virtual address c0000081
....
: May 13 10:14:19 intrepid kernel: Process ifconfig (pid: 64, process nr: 10, stackpage=01f55000)

This bug in new de4x5 driver bited me too.

Fix:

static struct sk_buff *
de4x5_alloc_rx_buff(struct device *dev, int index, int len)
{
...............
ret = lp->rx_skb[index];
lp->rx_skb[index] = p;
#ifndef NO_ANK_FIX
if (ret != (struct sk_buff *)1)
#endif
skb_put(ret, len);

return ret;

Alexey Kuznetsov.