mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
pipes: Plug pipe fd leak in "Unable to set a pipe size" error case.
From: Piotr Figiel <figiel@google.com> Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
parent
ffa1e47fd8
commit
eea0d6edee
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ int dump_one_pipe_data(struct pipe_data_dump *pd, int lfd, const struct fd_parms
|
|||
/* steal_pipe has to be able to fit all data from a target pipe */
|
||||
if (fcntl(steal_pipe[1], F_SETPIPE_SZ, pipe_size) < 0) {
|
||||
pr_perror("Unable to set a pipe size");
|
||||
goto err;
|
||||
goto err_close;
|
||||
}
|
||||
|
||||
bytes = tee(lfd, steal_pipe[1], pipe_size, SPLICE_F_NONBLOCK);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue