[PATCH 5.10 051/599] remoteproc: Fix count check in rproc_coredump_write()