diff options
author | Javier González <jg@lightnvm.io> | 2017-04-22 01:32:48 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-24 00:57:52 +0200 |
commit | be388d9fbd4e09582e31c3ee82a022e368208ae3 (patch) | |
tree | 7cd48c6139b78fb22d9a27cc4d49a4aa6af0e34b /drivers/lightnvm/pblk-write.c | |
parent | lightnvm: pblk: fix memory leak on error path (diff) | |
download | linux-be388d9fbd4e09582e31c3ee82a022e368208ae3.tar.xz linux-be388d9fbd4e09582e31c3ee82a022e368208ae3.zip |
lightnvm: pblk: free metadata on line alloc failure
When a line allocation fails, for example, due to having too many bad
blocks, free its metadata correctly.
Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target"
Signed-off-by: Javier González <javier@cnexlabs.com>
Reviewed-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/pblk-write.c')
0 files changed, 0 insertions, 0 deletions