]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fix bad back free on error path
authorJavier González <jg@lightnvm.io>
Wed, 3 May 2017 09:19:05 +0000 (11:19 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 4 May 2017 13:53:04 +0000 (07:53 -0600)
commit9cf1ecd72df7d195241b4c26e6caa4e64a891db3
treee16f1c40edecd3d0cfc5a358cfafe58eba604708
parentb4e6f56dfa22bca059e48394cc6cb3b42f887927
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: Javier González <javier@cnexlabs.com>
Reviewed-by: Matias Bjørling <matias@cnexlabs.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c