]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/usb/class/cdc-acm.c
acm: Return ENODEV instead of EINVAL when trying to open ACM device.
[~shefty/rdma-dev.git] / drivers / usb / class / cdc-acm.c
index 38bfdb0f666058061081e6035512843cb0eaa850..02eb60bb6795625252880fa0abc2d43033dced6f 100644 (file)
@@ -550,7 +550,7 @@ static void acm_waker(struct work_struct *waker)
 static int acm_tty_open(struct tty_struct *tty, struct file *filp)
 {
        struct acm *acm;
-       int rv = -EINVAL;
+       int rv = -ENODEV;
        int i;
        dbg("Entering acm_tty_open.");