aboutsummaryrefslogtreecommitdiffstats
path: root/net/llc
diff options
context:
space:
mode:
Diffstat (limited to 'net/llc')
-rw-r--r--net/llc/af_llc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index a75b8f2aab19..0607cd3fd12c 100644
--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -296,6 +296,12 @@ static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen)
296 rc = -EAFNOSUPPORT; 296 rc = -EAFNOSUPPORT;
297 if (unlikely(addr->sllc_family != AF_LLC)) 297 if (unlikely(addr->sllc_family != AF_LLC))
298 goto out; 298 goto out;
299 rc = -ENODEV;
300 rtnl_lock();
301 llc->dev = dev_getbyhwaddr(addr->sllc_arphrd, addr->sllc_mac);
302 rtnl_unlock();
303 if (!llc->dev)
304 goto out;
299 if (!addr->sllc_sap) { 305 if (!addr->sllc_sap) {
300 rc = -EUSERS; 306 rc = -EUSERS;
301 addr->sllc_sap = llc_ui_autoport(); 307 addr->sllc_sap = llc_ui_autoport();