• Vojtech Pavlik's avatar
    [PATCH] USB: Fix oops in usblp driver · b41cb145
    Vojtech Pavlik authored
    This bug was reported back in July, and I sent out a patch but apparently
    it never got to you.  The usblp driver was calling usb_buffer_free() from
    usblp_cleanup(), which runs after disconnect() if a user process holds the
    device open.  But once the usb_device is gone usb_buffer_free() will
    oops.  The patch frees the buffers in usb_disconnect() instead.
    
    Recently Joost Witteveen reported the same oops and found that the
    patch solved it for him.  So there shouldn't be problems with accepting
    it.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    b41cb145
usblp.c 33.3 KB