]> git.baikalelectronics.ru Git - kernel.git/commit
[media] fc2580: fix crash when attach fails
authorAntti Palosaari <crope@iki.fi>
Sat, 22 Sep 2012 02:36:27 +0000 (23:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Sep 2012 18:17:24 +0000 (15:17 -0300)
commit568c470c90cd4d6f2fa070c25d8e49b37fe05a08
tree27509088f79ca176e56addcc81197e064fb9d986
parentb9f4cdbc7c4567e67e9f5858f889cef1d3e81458
[media] fc2580: 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/fc2580.c