Skip to content
Commit 59b0ed12 authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
parent 23c15c21
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment