IB/mlx4: Fix last allocated object tracking in bitmap allocator
authorRoland Dreier <rolandd@cisco.com>
Tue, 29 May 2007 23:07:09 +0000 (16:07 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 29 May 2007 23:07:09 +0000 (16:07 -0700)
commita2cb4a98f243d01f2c8d5799c764bb96ffa66c44
tree8bf4e73ab877936da113969c941a51e6aef8d319
parentd998ccce020e2cfcf11c6b57503532930ede2894
IB/mlx4: Fix last allocated object tracking in bitmap allocator

Set last allocated object to the object after the one just allocated
before ORing in the extra top bits.  Also handle the case where this
wraps around.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/alloc.c