procfs: check parent entry to avoid page fault in procfs_exit()
This commit is contained in:
@@ -462,7 +462,9 @@ void procfs_exit(int osnum) {
|
|||||||
} else {
|
} else {
|
||||||
r += 1;
|
r += 1;
|
||||||
}
|
}
|
||||||
remove_proc_entry(r, parent->entry);
|
if (parent) {
|
||||||
|
remove_proc_entry(r, parent->entry);
|
||||||
|
}
|
||||||
dprintk("free the entry\n");
|
dprintk("free the entry\n");
|
||||||
kfree(e);
|
kfree(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user