[media] e4000: fix crash when attach fails
authorAntti Palosaari <crope@iki.fi>
Sat, 22 Sep 2012 15:32:27 +0000 (12:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Sep 2012 18:17:44 +0000 (15:17 -0300)
commit36f647bad3d35546892c3639328479355da8690d
tree83686bc568439250376bd79998cb118ba3d9689c
parentef40c0088ecbc8863c9404c96065269c83c16259
[media] e4000: fix crash when attach fails

Callbacks were set even attach failed. This leads calling
.release() in error case and resulted crash.

Reported-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/e4000.c