[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[rhelv5-list] insmod module failed : "ERROR : Unable to allocate memory"


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 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 (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

Get your free suite of Windows Live services! Windows Live

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]