> 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... Cheers, Adam.