diff options
author | 2021-10-25 22:47:30 +0530 | |
---|---|---|
committer | 2021-10-27 07:58:26 +0200 | |
commit | d89b9f3bbb58e9e378881209756b0723694f22ff (patch) | |
tree | 8141d081520af9e4f336001d8689af71eabc90a7 /include/linux/fpga/fpga-mgr.h | |
parent | nvme-tcp: fix possible req->offset corruption (diff) | |
download | linux-dev-d89b9f3bbb58e9e378881209756b0723694f22ff.tar.xz linux-dev-d89b9f3bbb58e9e378881209756b0723694f22ff.zip |
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>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions