Commit 7d8b5da7 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

net: Do not BUG() if unsupported link type met

But rather exit gracefully.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c77e5299
...@@ -243,9 +243,11 @@ static int restore_link(NetDeviceEntry *nde, int nlsk) ...@@ -243,9 +243,11 @@ static int restore_link(NetDeviceEntry *nde, int nlsk)
return restore_one_link(nde, nlsk, NULL); return restore_one_link(nde, nlsk, NULL);
case ND_TYPE__VETH: case ND_TYPE__VETH:
return restore_one_link(nde, nlsk, veth_link_info); return restore_one_link(nde, nlsk, veth_link_info);
default:
pr_err("Unsupported link type %d\n", nde->type);
break;
} }
BUG();
return -1; return -1;
} }
......
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