lkml.org 
[lkml]   [2001]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: bug (isdn-subsystem?) in 2.4.0
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/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.045 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site