1. 11 11月, 2006 1 次提交
  2. 08 11月, 2006 2 次提交
  3. 07 11月, 2006 2 次提交
  4. 06 11月, 2006 5 次提交
  5. 01 11月, 2006 15 次提交
  6. 31 10月, 2006 1 次提交
  7. 30 10月, 2006 1 次提交
  8. 26 10月, 2006 1 次提交
  9. 25 10月, 2006 10 次提交
  10. 22 10月, 2006 2 次提交
    • D
      [PATCH] ibmveth: Fix index increment calculation · 047a66d4
      David Gibson 提交于
      The recent commit 751ae21c 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: NDavid Gibson <dwg@au1.ibm.com>
      Acked-by: NSantiago 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: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      047a66d4
    • D
      [PATCH] ibmveth: Fix index increment calculation · 5826cade
      David Gibson 提交于
      On Thu, Oct 12, 2006 at 06:22:14PM +1000, David Gibson wrote:
      > Your recent ibmveth commit, 751ae21c
      > ("fix int rollover panic"), causes a rapid oops on my test machine
      > (POWER5 LPAR).
      >
      > I've bisected it down to that commit, but am still investigating the
      > cause of the crash itself.
      
      Found the problem, I believe: an object lesson in the need for great
      caution using ++.
      
      [...]
      @@ -213,6 +213,7 @@ static void ibmveth_replenish_buffer_poo
       		}
      
       		free_index = pool->consumer_index++ % pool->size;
      +		pool->consumer_index = free_index;
       		index = pool->free_map[free_index];
      
       		ibmveth_assert(index != IBM_VETH_INVALID_MAP);
      
      Since the ++ is used as post-increment, the increment is not included
      in free_index, and so the added line effectively reverts the
      increment.  The produced_index side has an analagous bug.
      
      The following change corrects this:
      
      The recent commit 751ae21c 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: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      5826cade