From: Roland Dreier Date: Sat, 19 May 2007 15:51:58 +0000 (-0700) Subject: IB/mlx4: Fix check of opcode in mlx4_ib_post_send() X-Git-Tag: v2.6.22-rc3~108^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59b0ed121297b57abb2352bdc8313959e7cb5635;p=pandora-kernel.git IB/mlx4: Fix check of opcode in mlx4_ib_post_send() wr->opcode is invalid if it's >= ARRAY_SIZE(mlx4_ib_opcode), not just strictly >. This was spotted by the Coverity checker (CID 1643). Signed-off-by: Roland Dreier --- Reading git-diff-tree failed