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().

Reported-by: Tomasz Rochumski <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
---
 ndctl/lib/inject.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ndctl/lib/inject.c b/ndctl/lib/inject.c
index 848f8a9..f9da02d 100644
--- a/ndctl/lib/inject.c
+++ b/ndctl/lib/inject.c
@@ -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)
-- 
2.14.4

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

Reply via email to