Re: [patch -mainline] qlge: fix a timeout loop in ql_change_rx_buffers()

2015-12-15 Thread David Miller
From: Dan Carpenter Date: Tue, 15 Dec 2015 13:52:36 +0300 > The problem here is that after the loop we test for "if (!i) " but > because "i--" is a post-op we exit with i set to -1. I have fixed this > by changing it to a pre-op instead. I had to change the starting value > from 3 to 4 so that

[patch -mainline] qlge: fix a timeout loop in ql_change_rx_buffers()

2015-12-15 Thread Dan Carpenter
The problem here is that after the loop we test for "if (!i) " but because "i--" is a post-op we exit with i set to -1. I have fixed this by changing it to a pre-op instead. I had to change the starting value from 3 to 4 so that we still iterate 3 times. Signed-off-by: Dan Carpenter diff --git