aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/ioctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index d2b53eb8a8c2..8ccc106f4e18 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1140,9 +1140,7 @@ int btrfs_defrag_file(struct inode *inode, struct file *file,
1140 btrfs_set_super_incompat_flags(disk_super, features); 1140 btrfs_set_super_incompat_flags(disk_super, features);
1141 } 1141 }
1142 1142
1143 if (!file) 1143 ret = defrag_count;
1144 kfree(ra);
1145 return defrag_count;
1146 1144
1147out_ra: 1145out_ra:
1148 if (!file) 1146 if (!file)