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