• Daniel Mack's avatar
    usb: gadget: fix MIDI gadget jack allocation · 74203de0
    Daniel Mack authored
    The dynamic jack allocation of the MIDI gadget currently links all
    external jacks to one single instance of an embedded jack. According to
    the spec, this is only valid if these streams always carry the same data
    stream, as described in the USB MIDI 1.0 spec, chapter 3.3.1.
    
    Also, genius Windows 7(tm) terminates it's life cycle instantly with a
    blue screen of death once a device with more than one input and output
    port with the current implementation is connected.
    
    While at it, and because it grew again by this change, allocate the
    temporary function pointer list on the heap, not on the stack.
    Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    74203de0
f_midi.c 25.1 KB