+ stv680-boolean-logic-bug.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     stv680 boolean logic bug

has been added to the -mm tree.  Its filename is

     stv680-boolean-logic-bug.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: stv680 boolean logic bug
From: Dave Jones <davej@xxxxxxxxxx>


This looks closer to what I believe the original intent was.  (Also fixes
line-len to meet CodingStyle)

Signed-off-by: Dave Jones <davej@xxxxxxxxxx>
Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/media/video/stv680.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/media/video/stv680.c~stv680-boolean-logic-bug drivers/media/video/stv680.c
--- a/drivers/media/video/stv680.c~stv680-boolean-logic-bug
+++ a/drivers/media/video/stv680.c
@@ -975,7 +975,8 @@ static void bayer_unshuffle (struct usb_
 	frame->grabstate = FRAME_DONE;
 	stv680->framecount++;
 	stv680->readcount++;
-	if (stv680->frame[(stv680->curframe + 1) & (STV680_NUMFRAMES - 1)].grabstate == FRAME_READY) {
+	if (stv680->frame[(stv680->curframe + 1) &&
+			(STV680_NUMFRAMES - 1)].grabstate == FRAME_READY) {
 		stv680->curframe = (stv680->curframe + 1) & (STV680_NUMFRAMES - 1);
 	}
 
_

Patches currently in -mm which might be from davej@xxxxxxxxxx are

origin.patch
git-acpi.patch
git-agpgart.patch
git-block.patch
git-cpufreq.patch
fix-up-funky-logic-in-dvb.patch
stv680-boolean-logic-bug.patch
remove-silly-messages-from-input-layer.patch
fix-ide-locking-error.patch
post-halloween-doc.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux