unable to handle kernel NULL pointer dereference while opening a device

2008-08-09 Thread Venky K Shankar
hi kernel'ers : i have a kernel module in which i am trying to implement a simple device driver following the LDD3 book. currently i am only trying to open and close the device node. the module compiles fine and when insmod'ed it sets up the hooks using cdev_init() and cdev_add(). then i

Re: unable to handle kernel NULL pointer dereference while opening a device

2008-08-09 Thread Venky K Shankar
got it, looks like i did a accidental dd in vi :) On Saturday 09 August 2008 08:35:14 pm Venky K Shankar wrote: hi kernel'ers : i have a kernel module in which i am trying to implement a simple device driver following the LDD3 book. currently i am only trying to open and close the device

Re: unable to handle kernel NULL pointer dereference while opening a device

2008-08-09 Thread Mulyadi Santosa
On Sun, Aug 10, 2008 at 1:09 AM, Venky K Shankar [EMAIL PROTECTED] wrote: got it, looks like i did a accidental dd in vi :) Deleting lines that does kmalloc/alloc_pages for the struct? regards, Mulyadi. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL

Re: unable to handle kernel NULL pointer dereference while opening a device

2008-08-09 Thread Manish Katiyar
On Sun, Aug 10, 2008 at 10:54 AM, Mulyadi Santosa [EMAIL PROTECTED] wrote: On Sun, Aug 10, 2008 at 1:09 AM, Venky K Shankar [EMAIL PROTECTED] wrote: got it, looks like i did a accidental dd in vi :) Deleting lines that does kmalloc/alloc_pages for the struct? Probably deleting skull_ops, thus

Re: unable to handle kernel NULL pointer dereference while opening a device

2008-08-09 Thread Mulyadi Santosa
On Sun, Aug 10, 2008 at 12:34 PM, Manish Katiyar [EMAIL PROTECTED] wrote: On Sun, Aug 10, 2008 at 10:54 AM, Mulyadi Santosa Probably deleting skull_ops, thus making open as null. This is why I expect folks to clear up their own statement :D Somebody in the future will probably check this thread