]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: fm801: add error handling if auto-detect fails
authorDan Carpenter <error27@gmail.com>
Thu, 26 May 2011 08:47:35 +0000 (11:47 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Jun 2011 08:11:17 +0000 (10:11 +0200)
commitfc506c02b397485e07711e16dd435a474b327236
tree1efc1b578374b3b14519746bdd78188ba4d0c66a
parent5d65d0ea73f28e2bf3a5a3c290e8ffdfa12320e7
ALSA: fm801: add error handling if auto-detect fails

In the original code if auto detect failed and tea575x_tuner == 4
then we copy bogus information to chip->tea.card.  I've changed the
autodetect code to cleanup and return -ENODEV on error instead.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/fm801.c