Commit cc87632f authored by Pavel Emelyanov's avatar Pavel Emelyanov

tty: Handle tty collecting error

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 990f80dd
...@@ -842,10 +842,10 @@ int collect_tty(void) ...@@ -842,10 +842,10 @@ int collect_tty(void)
ret = collect_image(CR_FD_TTY_INFO, PB_TTY_INFO, ret = collect_image(CR_FD_TTY_INFO, PB_TTY_INFO,
sizeof(struct tty_info_entry), sizeof(struct tty_info_entry),
collect_one_tty_info_entry); collect_one_tty_info_entry);
if (!ret)
ret = collect_image(CR_FD_TTY, PB_TTY, ret = collect_image(CR_FD_TTY, PB_TTY,
sizeof(struct tty_info), sizeof(struct tty_info),
collect_one_tty); collect_one_tty);
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment