[PATCH 5.4 192/204] coredump: fix error handling for replace_fd()