]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ibmveth: Fix index increment calculation
authorDavid Gibson <dwg@au1.ibm.com>
Sat, 21 Oct 2006 17:24:13 +0000 (10:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 21 Oct 2006 20:35:06 +0000 (13:35 -0700)
commitf4eb077950af42a24f1a467acf120fff33668778
tree448062113a3fe5083354da6181310d76f1d52af6
parentd6ed1c0f073864f53ecc506d11d220f8f83e7471
[PATCH] ibmveth: Fix index increment calculation

The recent commit 70e2721866b68e54d8286ba664cd1ccc0fbe0ba5 introduced a bug
in the producer/consumer index calculation in the ibmveth driver -
incautious use of the post-increment ++ operator resulted in an increment
being immediately reverted.  This patch corrects the logic.

Without this patch, the driver oopses almost immediately after activation
on at least some machines.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Acked-by: Santiago Leon <santil@us.ibm.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/net/ibmveth.c