diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2011-11-04 14:41:02 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-11-06 09:11:08 +0100 |
commit | 9510dc4c62252e96dca44a94948327c76774f25b (patch) | |
tree | 945a5a2df3c4c84cec80dee60c1c67751e5489b8 /fs | |
parent | Btrfs: stop the readahead threads on failed mount (diff) | |
download | linux-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')
-rw-r--r-- | fs/btrfs/reada.c | 2 |
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; |