diff options
| author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-18 12:07:10 +0200 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-18 12:07:10 +0200 |
| commit | 7b91fd8cc5e261bfdacc0ba47b74f0411bbbfafb (patch) | |
| tree | 99ed38371451f8207a66dbf117f97612c3681d5d /linux/drivers/media/video/cx18 | |
| parent | ba9ada241fb72554a85cf3ae478d3de60e4ead69 (diff) | |
| download | mediapointer-dvb-s2-7b91fd8cc5e261bfdacc0ba47b74f0411bbbfafb.tar.gz mediapointer-dvb-s2-7b91fd8cc5e261bfdacc0ba47b74f0411bbbfafb.tar.bz2 | |
videodev/cx18: fix get_index bug and error-handling lock-ups
From: Hans Verkuil <hverkuil@xs4all.nl>
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>
Diffstat (limited to 'linux/drivers/media/video/cx18')
| -rw-r--r-- | linux/drivers/media/video/cx18/cx18-streams.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-streams.c b/linux/drivers/media/video/cx18/cx18-streams.c index df99070e6..a4886bc6c 100644 --- a/linux/drivers/media/video/cx18/cx18-streams.c +++ b/linux/drivers/media/video/cx18/cx18-streams.c @@ -311,8 +311,10 @@ void cx18_streams_cleanup(struct cx18 *cx, int unregister) /* Teardown all streams */ for (type = 0; type < CX18_MAX_STREAMS; type++) { - if (cx->streams[type].dvb.enabled) + if (cx->streams[type].dvb.enabled) { cx18_dvb_unregister(&cx->streams[type]); + cx->streams[type].dvb.enabled = false; + } vdev = cx->streams[type].v4l2dev; |
