ext4: close struct file leak on EXT4_IOC_MOVE_EXT
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Aug 2012 01:00:03 +0000 (21:00 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:10:06 +0000 (21:10 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ext4/ioctl.c

index 7f7dad7876035e474b3c9ad7054344f6f6e7d045..a0ee682dc394dfaf8980a68884316acf8f386f1a 100644 (file)
@@ -258,7 +258,8 @@ group_extend_out:
                               EXT4_FEATURE_RO_COMPAT_BIGALLOC)) {
                        ext4_msg(sb, KERN_ERR,
                                 "Online defrag not supported with bigalloc");
-                       return -EOPNOTSUPP;
+                       err = -EOPNOTSUPP;
+                       goto mext_out;
                }
 
                err = mnt_want_write_file(filp);