Skip to contentSkip to conversation

cx25821,medusa: incorrect check on decoder type

PATCH RESEND New Alan Cox 1 participant 1 message Jul 24, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH RESEND 1/1 cx25821,medusa: incorrect check on decoder type

From: Alan Cox <[email protected]>

Unsupported requests should be ignored but in fact affected VDEC_A

Reported-by [email protected]

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44051

---

 drivers/media/video/cx25821/cx25821-medusa-video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/video/cx25821/cx25821-medusa-video.c +1 -1
index 313fb20..6a92e5c 100644
@@ -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;
 	}