diff options
Diffstat (limited to 'net/llc/af_llc.c')
-rw-r--r-- | net/llc/af_llc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c index b48244156e75..49eacba824df 100644 --- a/net/llc/af_llc.c +++ b/net/llc/af_llc.c | |||
@@ -252,7 +252,7 @@ static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) | |||
252 | if (!sock_flag(sk, SOCK_ZAPPED)) | 252 | if (!sock_flag(sk, SOCK_ZAPPED)) |
253 | goto out; | 253 | goto out; |
254 | rc = -ENODEV; | 254 | rc = -ENODEV; |
255 | llc->dev = dev_getfirstbyhwtype(addr->sllc_arphrd); | 255 | llc->dev = dev_getfirstbyhwtype(&init_net, addr->sllc_arphrd); |
256 | if (!llc->dev) | 256 | if (!llc->dev) |
257 | goto out; | 257 | goto out; |
258 | rc = -EUSERS; | 258 | rc = -EUSERS; |
@@ -303,7 +303,7 @@ static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) | |||
303 | goto out; | 303 | goto out; |
304 | rc = -ENODEV; | 304 | rc = -ENODEV; |
305 | rtnl_lock(); | 305 | rtnl_lock(); |
306 | llc->dev = dev_getbyhwaddr(addr->sllc_arphrd, addr->sllc_mac); | 306 | llc->dev = dev_getbyhwaddr(&init_net, addr->sllc_arphrd, addr->sllc_mac); |
307 | rtnl_unlock(); | 307 | rtnl_unlock(); |
308 | if (!llc->dev) | 308 | if (!llc->dev) |
309 | goto out; | 309 | goto out; |