summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--src/erasurecode.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 6693f87..0f996ec 100644
--- a/README.md
+++ b/README.md
@@ -420,4 +420,4 @@ References
[3] Greenan, Kevin M et al, "Flat XOR-based erasure codes in storage systems", http://www.kaymgee.com/Kevin_Greenan/Publications_files/greenan-msst10.pdf
- [4] Kota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>, Ryuta Kon <kon.ryuta@po.ntts.co.jp>, "NTT SHSS Erasure Coding backend"
+ [4] Kota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>, "NTT SHSS Erasure Coding backend"
diff --git a/src/erasurecode.c b/src/erasurecode.c
index 33acf26..d3b3cea 100644
--- a/src/erasurecode.c
+++ b/src/erasurecode.c
@@ -331,7 +331,7 @@ int liberasurecode_instance_destroy(int desc)
/* dlclose() backend library */
liberasurecode_backend_close(instance);
- /* Remove instace from registry */
+ /* Remove instance from registry */
rc = liberasurecode_backend_instance_unregister(instance);
if (rc == 0) {
free(instance);
@@ -1090,7 +1090,7 @@ int liberasurecode_verify_fragment_metadata(ec_backend_t be,
{
int k = be->args.uargs.k;
int m = be->args.uargs.m;
- if (md->idx < 0 || (md->idx > (k + m))) {
+ if (md->idx > (k + m)) {
return 1;
}
if (md->backend_id != be->common.id) {