Commit 71e2bdc9 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Andrei Vagin

net: Fix links collection retcode

There's a

   if (bad_thing) {
	   ret = -1;
	   break;
   }

code above this hunk, whose intention is to propagate -1 back to
caller. This propagation is obviously broken.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 95f2d407
......@@ -1560,7 +1560,7 @@ static int read_links(struct ns_id *ns)
}
close_image(img);
return 0;
return ret;
}
static int restore_link(int nlsk, struct ns_id *ns, struct net_link *link)
......
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