Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f105b40 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: gadget: midi: Replace snd_card_free with snd_card_free_closed" into msm-4.9

parents 4295a5d6 f69990c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1284,7 +1284,7 @@ static void f_midi_unbind(struct usb_configuration *c, struct usb_function *f)
	card = midi->card;
	midi->card = NULL;
	if (card)
		snd_card_free(card);
		snd_card_free_when_closed(card);

	usb_free_all_descriptors(f);
}