aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/usb/usbaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index 7b3bcf1916d2..410be4aff1ba 100644
--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -3424,7 +3424,6 @@ static void snd_usb_audio_create_proc(struct snd_usb_audio *chip)
3424 3424
3425static int snd_usb_audio_free(struct snd_usb_audio *chip) 3425static int snd_usb_audio_free(struct snd_usb_audio *chip)
3426{ 3426{
3427 usb_chip[chip->index] = NULL;
3428 kfree(chip); 3427 kfree(chip);
3429 return 0; 3428 return 0;
3430} 3429}
@@ -3689,6 +3688,7 @@ static void snd_usb_audio_disconnect(struct usb_device *dev, void *ptr)
3689 list_for_each(p, &chip->mixer_list) { 3688 list_for_each(p, &chip->mixer_list) {
3690 snd_usb_mixer_disconnect(p); 3689 snd_usb_mixer_disconnect(p);
3691 } 3690 }
3691 usb_chip[chip->index] = NULL;
3692 mutex_unlock(&register_mutex); 3692 mutex_unlock(&register_mutex);
3693 snd_card_free_when_closed(card); 3693 snd_card_free_when_closed(card);
3694 } else { 3694 } else {