aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/mballoc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 21ee6d42ee7b..771a1d608528 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2661,6 +2661,10 @@ static int ext4_mb_init_per_dev_proc(struct super_block *sb)
2661 struct proc_dir_entry *proc; 2661 struct proc_dir_entry *proc;
2662 char devname[64]; 2662 char devname[64];
2663 2663
2664 if (proc_root_ext4 == NULL) {
2665 sbi->s_mb_proc = NULL;
2666 return -EINVAL;
2667 }
2664 bdevname(sb->s_bdev, devname); 2668 bdevname(sb->s_bdev, devname);
2665 sbi->s_mb_proc = proc_mkdir(devname, proc_root_ext4); 2669 sbi->s_mb_proc = proc_mkdir(devname, proc_root_ext4);
2666 2670