summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/reada.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2011-11-04 14:41:02 +0100
committerChris Mason <chris.mason@oracle.com>2011-11-06 09:11:08 +0100
commit9510dc4c62252e96dca44a94948327c76774f25b (patch)
tree945a5a2df3c4c84cec80dee60c1c67751e5489b8 /fs/btrfs/reada.c
parentBtrfs: stop the readahead threads on failed mount (diff)
downloadlinux-9510dc4c62252e96dca44a94948327c76774f25b.tar.xz
linux-9510dc4c62252e96dca44a94948327c76774f25b.zip
Btrfs: stop leaking btrfs_bios on readahead
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/reada.c')
-rw-r--r--fs/btrfs/reada.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c
index cd857119ba8a..35eaf6893679 100644
--- a/fs/btrfs/reada.c
+++ b/fs/btrfs/reada.c
@@ -423,6 +423,7 @@ again:
}
spin_unlock(&fs_info->reada_lock);
+ kfree(multi);
return re;
error:
@@ -447,6 +448,7 @@ error:
kref_put(&zone->refcnt, reada_zone_release);
spin_unlock(&fs_info->reada_lock);
}
+ kfree(multi);
kfree(re);
if (looped)
goto again;