Commit 1008a7fe authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: Return ENODEV if !dev.

parent 1ee3cd22
......@@ -478,6 +478,8 @@ int vcc_connect(struct socket *sock, int itf, short vpi, int vci)
return -EINVAL;
if (itf != ATM_ITF_ANY) {
dev = atm_dev_lookup(itf);
if (!dev)
return -ENODEV;
error = __vcc_connect(vcc, dev, vpi, vci);
if (error) {
atm_dev_put(dev);
......
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