V4L/DVB (8414): videodev/cx18: fix get_index bug and error-handling lock-ups
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 18 Jul 2008 13:07:10 +0000 (10:07 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:29:27 +0000 (07:29 -0300)
commitfac3639d886ae577d74e2da16e6a448620d432c9
tree2771f7bd1e2f7225b451dc5a272f30b5515e90e4
parentf19ad390146e7745cbc529f3bef8469cf21f3a6b
V4L/DVB (8414): videodev/cx18: fix get_index bug and error-handling lock-ups

Fix a bug in get_index that was introduced earlier.
Also fix two error handling lock-ups in videodev and cx18 that
where found thanks to that bug.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx18/cx18-streams.c
drivers/media/video/videodev.c