diff --git a/libubb/physmem.c b/libubb/physmem.c index db4de06..6be5c2f 100644 --- a/libubb/physmem.c +++ b/libubb/physmem.c @@ -148,7 +148,6 @@ int physmem_xlat(const void *v, size_t len, while (len) { if (n >= vec_len) { - close(fd); errno = EOVERFLOW; return -1; } @@ -163,7 +162,6 @@ int physmem_xlat(const void *v, size_t len, vaddr += this_len; len -= this_len; } - close(fd); return n; }