Hi,
I'm having problem loading my audio driver module ( size 10MB ) on RHEL5
default kernel. It prompt error "Unable to allocate memory".......
Thus, I tried compiling my own vanilla kernel (ver 2.6.15.5) to debug this
issue. Surprisingly, I'm able to load my module ! Problem now is I can't debug
RH5 kernel cos it doesn't come with the source (module.c) which i need to trace
into......
Using kernel 2.6.15.5 (module.c) , I believe the problem could be here :
static struct module *load_module(.....)
{
....
/* Suck in entire file: we'll want most of it. */
/* vmalloc barfs on "unusual" numbers. Check here */
if (len > 64 * 1024 * 1024 || (hdr = vmalloc(len)) == NULL)
return ERR_PTR(-ENOMEM); // RHEL5 COULD BE FAILING HERE....
....
}
Is there any way to find out what's the max size RHEL5 kernel module.c used for
checking ?
Best Regards
Kelvin
_________________________________________________________________
Publish your photos to your Space easily with Photo Gallery
http://www.get.live.com/wl/all_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list