lkml.org 
[lkml]   [2002]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    SubjectSimple cyberjack diff
    Date
    While looking around the usb code I noticed this semaphore problem in
    cyberjack. Anyway, it's a quicky.

    Thanks,
    Shane Nay.

    --- virgin/linux/drivers/usb/serial/cyberjack.c Fri Dec 21 09:41:55 2001
    +++ linux/drivers/usb/serial/cyberjack.c Tue Feb 26 14:09:31 2002
    @@ -238,7 +238,8 @@
    if( (count+priv->wrfilled)>sizeof(priv->wrbuf) ) {
    /* To much data for buffer. Reset buffer. */
    priv->wrfilled=0;
    - return (0);
    + count=0;
    + goto exit;
    }

    /* Copy data */
    @@ -299,7 +300,7 @@
    priv->wrsent=0;
    }
    }
    -
    +exit:
    up (&port->sem);
    return (count);
    }
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:24    [W:0.049 / U:6.460 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site