ALSA: 6fire: Fix probe of multiple cards
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Oct 2013 10:24:23 +0000 (11:24 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 3 Jan 2014 04:33:15 +0000 (04:33 +0000)
commite9985b96e1505dda3207b8addac47c3a45a8e776
tree9a8334ddb3358b58715dfc394c0d2f5a598f854a
parenta499dd1760871482373c47bb5fe089311cc953fb
ALSA: 6fire: Fix probe of multiple cards

commit 9b389a8a022110b4bc055a19b888283544d9eba6 upstream.

The probe code of snd-usb-6fire driver overrides the devices[] pointer
wrongly without checking whether it's already occupied or not.  This
would screw up the device disconnection later.

Spotted by coverity CID 141423.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/usb/6fire/chip.c