lkml.org 
[lkml]   [2013]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 26/84] USB: zte_ev: fix broken open
    Date
    3.8.13.3 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Johan Hovold <jhovold@gmail.com>

    commit d8a1d0d54d5fdac0347b75e9afd554b3dfaa465f upstream.

    Remove bogus port-number check in open and close, which prevented this
    driver from being used with a minor number different from zero.

    Signed-off-by: Johan Hovold <jhovold@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Kamal Mostafa <kamal@canonical.com>
    ---
    drivers/usb/serial/zte_ev.c | 6 ------
    1 file changed, 6 deletions(-)

    diff --git a/drivers/usb/serial/zte_ev.c b/drivers/usb/serial/zte_ev.c
    index b9a88f2..870e01e 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;
    --
    1.8.1.2


    \
     
     \ /
      Last update: 2013-06-18 00:21    [W:4.152 / U:1.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site