[LLC]: In llc_ui_connect(), return error properly when device not found.

parent 330edb5e
......@@ -415,6 +415,7 @@ static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr,
goto out;
}
if (!llc->dev) {
rc = -ENODEV;
rtnl_lock();
dev = dev_getbyhwaddr(addr->sllc_arphrd, addr->sllc_smac);
rtnl_unlock();
......
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