• Kay Sievers's avatar
    [PATCH] USB: usb-skeleton.c usb_buffer_free() not called · 23d4cf5a
    Kay Sievers authored
    dev->udev was set to NULL to indicate a device disconnect but we need
    this value for usb_buffer_free() when device is still opened and cleanup is
    delayed until skel_release().
    I've added a dev->present for preventing device read, write and ioctl.
    Also URB_NO_DMA_MAP is changed to URB_NO_TRANSFER_DMA_MAP and a unused
    var is removed.
    23d4cf5a
usb-skeleton.c 18.9 KB