]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb3: Fix too-big reserved field zeroing in iwch_post_zb_read()
authorRoland Dreier <rolandd@cisco.com>
Sat, 1 Nov 2008 19:55:37 +0000 (12:55 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 1 Nov 2008 19:55:37 +0000 (12:55 -0700)
commita51576f7db8acbf736ff75378f760372347e01dc
treec73156d136992126b02c742be730c396ca8f6ff6
parent4c2911bc961721c75d3593f1afdeb2605cbb00f4
RDMA/cxgb3: Fix too-big reserved field zeroing in iwch_post_zb_read()

The array wqe->read.reserved has only two entries, but
iwch_post_zb_read() sets [0], [1], and [2], which is one too many.
This is harmless since it runs into the next field, rem_stag, which is
initialized correctly immediately after, but we might as well get
things right, especially since it makes the code smaller.

This was spotted by the Coverity checker (CID 2475).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
drivers/infiniband/hw/cxgb3/iwch_qp.c