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

Commit c5bfb279 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sound: usb: Fix use after free in driver probe"

parents 005b9dda e67d64e8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -743,6 +743,7 @@ static int usb_audio_probe(struct usb_interface *intf,
	if (chip) {
		if (!chip->num_interfaces)
			snd_card_free(chip->card);
		else
			atomic_dec(&chip->active);
	}
	mutex_unlock(&register_mutex);