]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/iw_cxgb4: Fix incorrect function parameters
authorPotnuri Bharat Teja <bharat@chelsio.com>
Mon, 11 May 2020 18:56:08 +0000 (00:26 +0530)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 12 May 2020 14:47:48 +0000 (11:47 -0300)
commitb2a38a49de8cd05e4e01b79f1eaefa7f12f1e405
tree6c379aa90ec5f57c21b056d6567bafa3ef421f21
parent8a9911566135b84b9c51fe8387d735339c358732
RDMA/iw_cxgb4: Fix incorrect function parameters

While reading the TCB field in t4_tcb_get_field32() the wrong mask is
passed as a parameter which leads the driver eventually to a kernel
panic/app segfault from access to an illegal SRQ index while flushing the
SRQ completions during connection teardown.

Fixes: 7da52547b3d6 ("iw_cxgb4: complete the cached SRQ buffers")
Link: https://lore.kernel.org/r/20200511185608.5202-1-bharat@chelsio.com
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/cm.c