1
0
Fork 0

Btrfs: stop leaking btrfs_bios on readahead

Signed-off-by: Chris Mason <chris.mason@oracle.com>
hifive-unleashed-5.1
Ilya Dryomov 2011-11-04 09:41:02 -04:00 committed by Chris Mason
parent 306c8b68c8
commit 9510dc4c62
1 changed files with 2 additions and 0 deletions

View File

@ -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;