[PATCH 5.16 0073/1017] remoteproc: Fix count check in rproc_coredump_write()