diff options
-rw-r--r-- | fs/proc/uid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/uid.c b/fs/proc/uid.c index 616d99b157c3..040591d341f8 100644 --- a/fs/proc/uid.c +++ b/fs/proc/uid.c @@ -286,6 +286,8 @@ static const struct inode_operations proc_uid_inode_operations = { int __init proc_uid_init(void) { proc_uid = proc_mkdir("uid", NULL); + if (!proc_uid) + return -ENOMEM; proc_uid->proc_iops = &proc_uid_inode_operations; proc_uid->proc_fops = &proc_uid_operations; |