[PATCH] coredump: fix null pointer dereference on coredump