summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/zte_ev.c
diff options
context:
space:
mode:
authorJohan Hovold2013-06-04 18:50:28 +0200
committerGreg Kroah-Hartman2013-06-04 19:17:09 +0200
commitd8a1d0d54d5fdac0347b75e9afd554b3dfaa465f (patch)
treed0b75e7d6e640bc2ebf6c73600b6f6f8d0c24efa /drivers/usb/serial/zte_ev.c
parentUSB: serial: Add Option GTM681W to qcserial device table. (diff)
downloadkernel-qcow2-linux-d8a1d0d54d5fdac0347b75e9afd554b3dfaa465f.tar.gz
kernel-qcow2-linux-d8a1d0d54d5fdac0347b75e9afd554b3dfaa465f.tar.xz
kernel-qcow2-linux-d8a1d0d54d5fdac0347b75e9afd554b3dfaa465f.zip
USB: zte_ev: fix broken open
Remove bogus port-number check in open and close, which prevented this driver from being used with a minor number different from zero. Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/zte_ev.c')
-rw-r--r--drivers/usb/serial/zte_ev.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/serial/zte_ev.c b/drivers/usb/serial/zte_ev.c
index b9a88f253636..870e01e24481 100644
--- a/drivers/usb/serial/zte_ev.c
+++ b/drivers/usb/serial/zte_ev.c
@@ -41,9 +41,6 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
int len;
unsigned char *buf;
- if (port->number != 0)
- return -ENODEV;
-
buf = kmalloc(MAX_SETUP_DATA_SIZE, GFP_KERNEL);
if (!buf)
return -ENOMEM;
@@ -166,9 +163,6 @@ static void zte_ev_usb_serial_close(struct usb_serial_port *port)
int len;
unsigned char *buf;
- if (port->number != 0)
- return;
-
buf = kmalloc(MAX_SETUP_DATA_SIZE, GFP_KERNEL);
if (!buf)
return;