aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nandtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nandtest.c b/nandtest.c
index f0cbf85..35766d8 100644
--- a/nandtest.c
+++ b/nandtest.c
@@ -112,7 +112,8 @@ int main(int argc, char **argv)
if (len < 0) {
printf("\n");
perror("write");
- exit(1);
+ ioctl(fd, MEMSETBADBLOCK, &ofs);
+ continue;
}
if (len < meminfo.erasesize) {
printf("\n");