Skip to content
Commit 507f7d68 authored by Javier González's avatar Javier González Committed by Jens Axboe
Browse files

lightnvm: fix bad back free on error path



Free memory correctly when an allocation fails on a loop and we free
backwards previously successful allocations.

Signed-off-by: default avatarJavier González <javier@cnexlabs.com>
Reviewed-by: default avatarMatias Bjørling <matias@cnexlabs.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 2e13f33a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment