media: em28xx-audio: fix user counting in snd_em28xx_capture_open()
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Fri, 17 Jan 2014 17:18:42 +0000 (14:18 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:31 +0000 (07:59 -0700)
commita5f0c485731823506fffd3cc881e3f8f212eea41
tree9f476e6bd6f9112a555f69d3631a54d37994f7a7
parent3aa5fe9222c1524c635ed9e71d873ca2cf308a61
media: em28xx-audio: fix user counting in snd_em28xx_capture_open()

commit 01ae3b51af7144ea29eb28ba718b65ad59ab9493 upstream.

dev->adev.users always needs to be increased when snd_em28xx_capture_open() is
called and succeeds.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/em28xx/em28xx-audio.c