From: Roland Dreier Date: Tue, 12 Jun 2007 17:50:42 +0000 (-0700) Subject: IB/mlx4: Fix handling of wq->tail for send completions X-Git-Tag: v2.6.22-rc6~70^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=614c3c85b5b4c3776439d464939c123cce679dee;p=pandora-kernel.git 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 . Signed-off-by: Roland Dreier --- Reading git-diff-tree failed