Pull another sound fix from Takashi Iwai: "This contains a fix for the double-free of usb-audio MIDI device at probe failure" * tag 'sound-fix-4.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: ALSA: usb-audio: avoid freeing umidi object twice
Unified · Split
| @@ -2455,7 +2455,6 @@ int snd_usbmidi_create(struct snd_card *card, · 2454 unmodified lines | |||
| 2455 | else | 2455 | else |
| 2456 | err = snd_usbmidi_create_endpoints(umidi, endpoints); | 2456 | err = snd_usbmidi_create_endpoints(umidi, endpoints); |
| 2457 | if (err < 0) { | 2457 | if (err < 0) { |
| 2458 | snd_usbmidi_free(umidi); | ||
| 2459 | return err; | 2458 | return err; |
| 2460 | } | 2459 | } |
| 2461 | 2460 | ||