[Linux-aus] create_proc_entry hangs the kernel

Adam Nielsen a.nielsen at shikadi.net
Sat Dec 11 17:23:16 EST 2010

> The following program hangs the kernel, when the insmod on it, is run. Can any
> one provide ideas why :
 > [...]
> pde= create_proc_entry(modname, S_IFDIR | S_IRUGO | S_IXUGO , tmp);

What if create_proc_entry() fails, and returns NULL?

> pde->nlink = 1;

Oops, null pointer reference...

> if(pde)

Too late to check now...


More information about the linux-aus mailing list