]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-tcp: fix data digest pointer calculation
authorVarun Prakash <varun@chelsio.com>
Mon, 25 Oct 2021 17:17:30 +0000 (22:47 +0530)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 Oct 2021 05:58:26 +0000 (07:58 +0200)
commitd89b9f3bbb58e9e378881209756b0723694f22ff
tree8141d081520af9e4f336001d8689af71eabc90a7
parentce7723e9cdae4eb3030da082876580f4b2dc0861
nvme-tcp: fix data digest pointer calculation

ddgst is of type __le32, &req->ddgst + req->offset
increases &req->ddgst by 4 * req->offset, fix this by
type casting &req->ddgst to u8 *.

Fixes: 3f2304f8c6d6 ("nvme-tcp: add NVMe over TCP host driver")
Signed-off-by: Varun Prakash <varun@chelsio.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c