summaryrefslogtreecommitdiff
path: root/block/partitions
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-06-05 16:14:56 +0100
committerJens Axboe <axboe@kernel.dk>2018-06-05 09:20:27 -0600
commit0ec6937e8e1251db1f2f54259ba5c16dbdb2b943 (patch)
treea10d6ff943013ca12d4fcbea863a12a276eadb53 /block/partitions
parent21ff1399ad95811629e13fa70e2386f3bba85fe5 (diff)
lightnvm: pblk: fix resource leak of invalid_bitmap
Currently the error exit path when the emeta could not be interpreted is via fail_free_ws and this fails to free invalid_bitmap. Fix this by adding another exit label and exiting via this to kfree invalid_bitmap. Detected by CoverityScan, CID#1469659 ("Resource leak") Fixes: 48b8d20895f8 ("lightnvm: pblk: garbage collect lines with failed writes") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions')
0 files changed, 0 insertions, 0 deletions