]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix handling of wq->tail for send completions
authorRoland Dreier <rolandd@cisco.com>
Tue, 12 Jun 2007 17:50:42 +0000 (10:50 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 12 Jun 2007 17:50:42 +0000 (10:50 -0700)
commitb066ef2531452bc0f19e3125d4635932b4f1b5b8
tree9e25ae6a6752eb32c31dfe9d0b55c79b90385fc6
parent49b26da3931b73535fdee8ef425e968fa83a8811
IB/mlx4: Fix handling of wq->tail for send completions

Cast the increment added to wq->tail when send completions are
processed to u16 to avoid using wrong values caused by standard
integer promotions.

The same bug was fixed in libmlx4 by Eli Cohen <eli@mellanox.co.il>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/cq.c