Re: bug (isdn-subsystem?) in 2.4.0

Kai Germaschewski (kai@thphy.uni-duesseldorf.de)
Mon, 15 Jan 2001 23:13:35 +0100 (CET)


On Mon, 15 Jan 2001, Ronny Buchmann wrote:

> i have the following problem with kernel 2.4.0 (also with -ac6):
>
> kernel BUG at slab.c:1095!
> invalid operand: 0000
> CPU: 0

I could reproduce the problem, the appended patch fixes it here. Linus,
could you please apply this for 2.4.1?

> ......
>
> (if you need the other numbers or anything else, ask me, i can reproduce
> it easily)

A decoded oops would be nice the next time, see

<your linux kernel source>/REPORTING-BUGS

However, you gave enough information for me to reproduce the problem, so
it's fine this time.

Thanks,
--Kai

--- linux-2.4.1-pre2/drivers/isdn/isdn_v110.c% Sun Aug 6 21:43:42 2000
+++ linux-2.4.1-pre2/drivers/isdn/isdn_v110.c Mon Jan 15 22:31:43 2001
@@ -102,7 +102,7 @@
int i;
isdn_v110_stream *v;

- if ((v = kmalloc(sizeof(isdn_v110_stream), GFP_KERNEL)) == NULL)
+ if ((v = kmalloc(sizeof(isdn_v110_stream), GFP_ATOMIC)) == NULL)
return NULL;
memset(v, 0, sizeof(isdn_v110_stream));
v->key = key;
@@ -134,7 +134,7 @@
v->b = 0;
v->skbres = hdrlen;
v->maxsize = maxsize - hdrlen;
- if ((v->encodebuf = kmalloc(maxsize, GFP_KERNEL)) == NULL) {
+ if ((v->encodebuf = kmalloc(maxsize, GFP_ATOMIC)) == NULL) {
kfree(v);
return NULL;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/