em28xx-alsa: Fix error patch for init/fini
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 14 Jan 2014 16:49:04 +0000 (14:49 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 14 Jan 2014 16:49:04 +0000 (14:49 -0200)
commit452f236fcf845ba95c2f984f3157493e07383792
tree43973519bf6c27b7c64c778e6f128454b08e5ab9
parentb49eb2bd71c39fb69ae9001dac9f07ae6259f9ef
em28xx-alsa: Fix error patch for init/fini

If something bad happens during init, we free the card data.
However, we still keep it initialized, causing some dependent
code to be called at .fini.

Fix it.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-audio.c