]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/siw: Fix page address mapping in TX path
authorBernard Metzler <bmt@zurich.ibm.com>
Mon, 9 Sep 2019 13:24:27 +0000 (15:24 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 13 Sep 2019 19:55:55 +0000 (16:55 -0300)
commit96cae9591ed28bf0121a7c216cbf462b789e1d12
tree63e2002f0256438bac98d87ed3862eeffed3f85b
parentbbd200e7e93fe0b67b1f705f1a3c5a53036df990
RDMA/siw: Fix page address mapping in TX path

Use the correct kmap()/kunmap() flow to determine page address used for
CRC computation. Using page_address() is wrong, since page might be in
highmem.

Fixes: 43654ff73ad1 ("rdma/siw: transmit path")
Link: https://lore.kernel.org/r/20190909132427.30264-1-bmt@zurich.ibm.com
Reported-by: Krishnamraju Eraparaju <krishna2@chelsio.com>
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/siw/siw_qp_tx.c