diff options
author | Jochen Friedrich <jochen@scram.de> | 2005-09-22 04:44:55 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-09-22 04:44:55 -0300 |
commit | cf309e3fb863b7a245b91f816193957f6daf786f (patch) | |
tree | dea98fdd919c726857d63b9a0f60e9ba89ca32d8 /net/llc | |
parent | 6e2144b76840be09924de1626e2dcd7b315f75b3 (diff) | |
download | linux-3.10-cf309e3fb863b7a245b91f816193957f6daf786f.tar.gz linux-3.10-cf309e3fb863b7a245b91f816193957f6daf786f.tar.bz2 linux-3.10-cf309e3fb863b7a245b91f816193957f6daf786f.zip |
[LLC]: Fix for Bugzilla ticket #5156
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/llc')
-rw-r--r-- | net/llc/af_llc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c index a75b8f2aab1..0607cd3fd12 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) rc = -EAFNOSUPPORT; if (unlikely(addr->sllc_family != AF_LLC)) goto out; + rc = -ENODEV; + rtnl_lock(); + llc->dev = dev_getbyhwaddr(addr->sllc_arphrd, addr->sllc_mac); + rtnl_unlock(); + if (!llc->dev) + goto out; if (!addr->sllc_sap) { rc = -EUSERS; addr->sllc_sap = llc_ui_autoport(); |