lightnvm: put bio before return
authorWenwei Tao <ww.tao0320@gmail.com>
Thu, 4 Feb 2016 14:13:23 +0000 (15:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:07:35 +0000 (10:07 +0200)
commit8e81d6b8c1507fab84f00c860f4883739ad5ba20
tree98799a3749c661ac5628a3e1adcc12689e6f14ad
parentbf63b9d429357bcb4857259874e36a44855f56ae
lightnvm: put bio before return

commit 16c6d048d7b74249a4387700887e8adb13028866 upstream.

The bio is not returned if the data page cannot be allocated.

Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/lightnvm/rrpc.c