Skip to content
  • Hans de Goede's avatar
    usb: control buffer fixes · 19f33223
    Hans de Goede authored
    
    
    Windows allows control transfers to pass up to 4k of data, so raise our
    control buffer size to 4k. For control out transfers the usb core code copies
    the control request data to a buffer before calling the device's handle_control
    callback. Add a check for overflowing the buffer before copying the data.
    
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    19f33223