Commit 4ee52f34 authored by Pavel Emelyanov's avatar Pavel Emelyanov

tcp: Use sk ino number for opening tcp stream image on restore

It was accidentally broken by 424a4adb. It's better to use sk ino
instead of sk id, since tcp connection may be unbound from any fds
(not supported now) and thus there may be no ID for those.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 56a7073e
......@@ -441,7 +441,7 @@ static int restore_tcp_conn_state(int sk, struct inet_sk_info *ii)
pr_info("Restoring TCP connection id %x ino %x\n", ii->ie->id, ii->ie->ino);
ifd = open_image_ro(CR_FD_TCP_STREAM, ii->ie->id);
ifd = open_image_ro(CR_FD_TCP_STREAM, ii->ie->ino);
if (ifd < 0)
goto err;
......
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