]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
RDMA/nes: Fix off-by-one bugs in reset_adapter_ne020() and init_serdes()
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 15 May 2009 17:16:45 +0000 (10:16 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 15 May 2009 17:16:45 +0000 (10:16 -0700)
commit28e43a519b9edb8277fc6b490ad17aa38c45a02b
tree56fd31d1d4e67a770d4fe55bff0ae570e4a7df3f
parent210af919c949a7d6bd330916ef376cec2907d81e
RDMA/nes: Fix off-by-one bugs in reset_adapter_ne020() and init_serdes()

With a postfix increment, i is incremented one past 10K/5K before the
loop ends, so the error messages will be displayed too soon if the
test succeeds on the last iteration.  Fix the comparisons to be >
instead of >=.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_hw.c