libndctl: fix the uninject-error API actually injecting errors
Vishal Verma
maintainerPATCH 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().
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(-)
ndctl/lib/inject.c +1 -1
@@ -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
Quoted 4 lines · Vishal Verma
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()calledndctl_namespace_inject_error2()instead ofndctl_namespace_uninject_error2().
Acked-by Dan Williams <[email protected]>
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm