mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
Be nice and check for nulls
This commit is contained in:
parent
e2f747eca4
commit
de1a855d5c
@ -6,6 +6,11 @@ static void log_path(char *op, struct dentry *dentry, struct vfsmount *mnt)
|
||||
{
|
||||
char *page, *name;
|
||||
|
||||
if (!mnt) {
|
||||
printk(KERN_INFO "foobar(%s): %p NULL vfsmnt\n", op, dentry);
|
||||
return;
|
||||
}
|
||||
|
||||
page = (char *)__get_free_page(GFP_KERNEL);
|
||||
if (!page) {
|
||||
printk(KERN_ERR "foobar(%s): Unable to get page for path %p/%p\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user