Re: OOPS in Kmalloc
Randy.Dunlap (rddunlap@osdl.org)
Thu, 24 Apr 2003 10:20:36 -0700
| ; 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/