Re: OOPS in Kmalloc

From: Randy.Dunlap (rddunlap@osdl.org)
Date: Thu Apr 24 2003 - 12:20:36 EST


| ; Hello,
| ; i am getting OOPS in Kmalloc .
| ;
| ; void **data;
| ; qset = 1000;
| ;
| ; dptr->data = kmalloc(qset * sizeof(char *), GFP_KERNEL);
| ;
| ; what could the possible the cause of the error
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| As I am so fond of saying, it's almost always correct to indicate what
| kernel version one if referring to in a problem report.
|
| Please decode the oops output and post it here.

I can't reproduce this problem on Linux 2.5.68.
However, I did initialize dptr before using it. Did you?

You see, I can't tell if you did or not because you didn't post
a complete sample to reproduce the problem.

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



This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:16 EST