[PATCH 5.15 070/913] remoteproc: Fix count check in rproc_coredump_write()