• Henning Meier-Geinitz's avatar
    [PATCH] USB: Fix crash in read/write/ioctl in scanner driver · b2b54c70
    Henning Meier-Geinitz authored
    Used kobject reference counting to free the scn struct when the device
    is closed and disconnected. Avoids crashes when writing to a
    disconnected device. (Thanks to Greg KH).
    
    I've also changed irq_scanner to avoid submitting new URBs when the
    old one returned with an error. Without this change irq_scanner gets
    called ever and ever again after a disconnect while open.
    b2b54c70
scanner.h 15 KB