[LinuxPPS] 21 Oct 20:35 - [PATCH] ibmveth: Fix index increment calculation

linuxpps, David Gibson <> webmaster at enneenne.com
Tue Oct 24 11:11:07 CEST 2006


[PATCH] ibmveth: Fix index increment calculation  
  
The recent commit 751ae21c6cd1493e3d0a4935b08fb298b9d89773 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   
  
Acked-by: Santiago Leon   
  
Cc: Jeff Garzik   
  
Cc: Martin Schwidefsky   
  
Cc: Andy Whitcroft   
  
Signed-off-by: Andrew Morton   
  
Signed-off-by: Linus Torvalds   
  
  
drivers/net/ibmveth.c

URL: http://gitweb.enneenne.com/?p=linuxpps;a=commit;h=047a66d4bb24aaf19f41d620f8f0534c2153cd0b



More information about the LinuxPPS mailing list