summaryrefslogtreecommitdiff
path: root/drivers/lightnvm
diff options
context:
space:
mode:
authorJavier González <jg@lightnvm.io>2017-04-22 01:32:46 +0200
committerJens Axboe <axboe@fb.com>2017-04-23 16:57:52 -0600
commitf3236cef5a206c27a624b8a813ddc1ebc4c6637a (patch)
treea9cc15a8931ce2bb03a45d36cb825e2baf24b45f /drivers/lightnvm
parent3dc001f343659e4732b4ff6da1c28edbd56c6e15 (diff)
lightnvm: pblk: fix bad error check
Fix bad error check Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target" Signed-off-by: Javier González <javier@cnexlabs.com> Reviewed-by: Matias Bjørling <matias@cnexlabs.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm')
-rw-r--r--drivers/lightnvm/pblk-core.c2
1 files changed, 1 insertions, 1 deletions
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;