From: Javier González Date: Fri, 21 Apr 2017 23:32:46 +0000 (+0200) Subject: lightnvm: pblk: fix bad error check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3236cef5a206c27a624b8a813ddc1ebc4c6637a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git lightnvm: pblk: fix bad error check Fix bad error check Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target" Signed-off-by: Javier González Reviewed-by: Matias Bjørling Signed-off-by: Jens Axboe --- diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index 7065658fd7ee..7eb62ec6c583 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -1273,7 +1273,7 @@ retry_meta: retry_setup: if (!pblk_line_set_metadata(pblk, new, cur)) { new = pblk_line_retry(pblk, new); - if (new) + if (!new) return NULL; goto retry_setup;