diff options
| author | Michael Albaugh <[email protected]> | 2008-05-07 10:59:23 -0700 |
|---|---|---|
| committer | Roland Dreier <[email protected]> | 2008-05-07 10:59:23 -0700 |
| commit | 2889d1ef1240591fa4c72a6753e0a8d1c6e18140 (patch) | |
| tree | 6540619947039fb63723fcbe69de0311bb77e9ce /drivers/message/fusion/lsi/mpi_raid.h | |
| parent | 2bfc8e9edf200aeeca18ee44bcbf6bce65438a42 (diff) | |
IB/ipath: Fix count of packets received by kernel
The loop in ipath_kreceive() that processes packets increments the
loop-index 'i' once too often, because the exit condition does not
depend on it, and is checked after the increment. By adding a check for
!last to the iterator in the for loop, we correct that in a way that is
not so likely to be re-broken by changes in the loop body.
Signed-off-by: Michael Albaugh <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions