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

Commit 4ead2edf 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 d8193ae6 44360353
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -696,6 +696,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);