Thread (8 messages) 8 messages, 2 authors, 2021-02-10
STALE1970d

[PATCH 1/4] bcache: correct return value in register_nvdimm_meta()

From: Coly Li <hidden>
Date: 2021-02-10 13:58:33
Also in: linux-block
Subsystem: bcache (block layer cache), the rest · Maintainers: Coly Li, Kent Overstreet, Linus Torvalds

'ret' should be used a return value, thi patch fixes this error.

Reported-by: kernel test robot <redacted>
Signed-off-by: Coly Li <redacted>
---
 drivers/md/bcache/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index c273eeef0d38..47a1225b3496 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -2554,7 +2554,7 @@ static ssize_t register_nvdimm_meta(struct kobject *k, struct kobj_attribute *at
 		ret = -EINVAL;
 	}
 
-	return size;
+	return ret;
 }
 #endif
 
-- 
2.26.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help