struct panic_header *hdr = ctx->bounce;
size_t len;
int rc;
+ int proc_entry_created = 0;
if (strcmp(mtd->name, CONFIG_APANIC_PLABEL))
return;
ctx->apanic_console->write_proc = apanic_proc_write;
ctx->apanic_console->size = hdr->console_length;
ctx->apanic_console->data = (void *) 1;
+ proc_entry_created = 1;
}
}
ctx->apanic_threads->write_proc = apanic_proc_write;
ctx->apanic_threads->size = hdr->threads_length;
ctx->apanic_threads->data = (void *) 2;
+ proc_entry_created = 1;
}
}
+ if (!proc_entry_created)
+ mtd_panic_erase();
+
return;
out_err:
ctx->mtd = NULL;