Skip to contentSkip to conversation

via-velocity: fix hot spin

PATCH Applied Roel Kluin 2 participants 2 messages Jan 17, 2009 – Jan 18, 2009

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 via-velocity: fix hot spin

while(--j >= 0) keeps spinning when j is unsigned:

---

drivers/net/via-velocity.c +1 -1
index a75f91d..c5691fd 100644
@@ -1302,7 +1302,7 @@ static void velocity_free_rd_ring(struct velocity_info *vptr)
 static int velocity_init_td_ring(struct velocity_info *vptr)
 {
 	dma_addr_t curr;
-	unsigned int j;
+	int j;
 
 	/* Init the TD ring entries */
 	for (j = 0; j < vptr->tx.numq; j++) {