public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH, RESEND] cx25821,medusa: incorrect check on decoder type
@ 2012-07-24 16:00 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2012-07-24 16:00 UTC (permalink / raw)
  To: linux-media, akpm

From: Alan Cox <alan@linux.intel.com>

Unsupported requests should be ignored but in fact affected VDEC_A

Reported-by: dcb314@hotmail.com
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44051
Signed-off-by: Alan Cox <alan@linux.intel.com>
---

 drivers/media/video/cx25821/cx25821-medusa-video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/video/cx25821/cx25821-medusa-video.c b/drivers/media/video/cx25821/cx25821-medusa-video.c
index 313fb20..6a92e5c 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,
 	mutex_lock(&dev->lock);
 
 	/* no support */
-	if (decoder < VDEC_A && decoder > VDEC_H) {
+	if (decoder < VDEC_A || decoder > VDEC_H) {
 		mutex_unlock(&dev->lock);
 		return;
 	}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-24 15:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24 16:00 [PATCH, RESEND] cx25821,medusa: incorrect check on decoder type Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox