Skip to contentSkip to conversation

libndctl: fix the uninject-error API actually injecting errors

PATCH In review Vishal Verma 2 participants 2 messages Jul 6, 2018 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 libndctl: fix the uninject-error API actually injecting errors

The addition of the v2 APIs introduced a bug when they rerouted the old APIs to call the new v2 ones. ndctl_namespace_uninject_error() called ndctl_namespace_inject_error2() instead of ndctl_namespace_uninject_error2().

---
 ndctl/lib/inject.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ndctl/lib/inject.c +1 -1
index 848f8a9..f9da02d 100644
@@ -271,7 +271,7 @@ NDCTL_EXPORT int ndctl_namespace_uninject_error2(struct ndctl_namespace *ndns,
 NDCTL_EXPORT int ndctl_namespace_uninject_error(struct ndctl_namespace *ndns,
 		unsigned long long block, unsigned long long count)
 {
-	return ndctl_namespace_inject_error2(ndns, block, count, 0);
+	return ndctl_namespace_uninject_error2(ndns, block, count, 0);
 }
 
 static int bb_add_record(struct list_head *h, u64 block, u64 count)
Signature · 6 lines
2.14.4

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm