diff options
author | Alan Cox <alan@linux.intel.com> | 2012-07-24 11:00:24 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 20:02:35 -0400 |
commit | c79a3c352469ea0a9cb2ed9e32c1932a7ff66c5c (patch) | |
tree | 66003d872756f197bd4ede7ac3bd5cba3952304e /drivers/media | |
parent | 908d4d141f9608d1966ea8b483ee1c1aad04e438 (diff) |
[media] cx25821,medusa: incorrect check on decoder type
Unsupported requests should be ignored but in fact affected VDEC_A
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44051
Reported-by: dcb314@hotmail.com
Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Palash Bandyopadhyay <Palash.Bandyopadhyay@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx25821/cx25821-medusa-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx25821/cx25821-medusa-video.c b/drivers/media/video/cx25821/cx25821-medusa-video.c index 313fb20a0b47..6a92e5c70c2a 100644 --- a/drivers/media/video/cx25821/cx25821-medusa-video.c +++ b/drivers/media/video/cx25821/cx25821-medusa-video.c | |||
@@ -499,7 +499,7 @@ static void medusa_set_decoderduration(struct cx25821_dev *dev, int decoder, | |||
499 | mutex_lock(&dev->lock); | 499 | mutex_lock(&dev->lock); |
500 | 500 | ||
501 | /* no support */ | 501 | /* no support */ |
502 | if (decoder < VDEC_A && decoder > VDEC_H) { | 502 | if (decoder < VDEC_A || decoder > VDEC_H) { |
503 | mutex_unlock(&dev->lock); | 503 | mutex_unlock(&dev->lock); |
504 | return; | 504 | return; |
505 | } | 505 | } |