diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2011-11-04 09:41:02 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-11-06 03:11:08 -0500 |
commit | 9510dc4c62252e96dca44a94948327c76774f25b (patch) | |
tree | 945a5a2df3c4c84cec80dee60c1c67751e5489b8 /fs/btrfs/reada.c | |
parent | 306c8b68c82dfe6b7c9e5b61985760ad5d089205 (diff) | |
download | linux-next-9510dc4c62252e96dca44a94948327c76774f25b.tar.gz |
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.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; |