[PATCH openEuler-5.10-LTS 047/559] remoteproc: Fix count check in rproc_coredump_write()