diff options
author | Varun Prakash <varun@chelsio.com> | 2021-10-25 22:46:54 +0530 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-10-27 07:58:26 +0200 |
commit | e790de54e94a7a15fb725b34724d41d41cbaa60c (patch) | |
tree | d7df9a09a623ef1220653f61a8d2aff57e460b8f /Makefile | |
parent | d89b9f3bbb58e9e378881209756b0723694f22ff (diff) | |
download | linux-stable-e790de54e94a7a15fb725b34724d41d41cbaa60c.tar.gz linux-stable-e790de54e94a7a15fb725b34724d41d41cbaa60c.tar.bz2 linux-stable-e790de54e94a7a15fb725b34724d41d41cbaa60c.zip |
nvmet-tcp: fix data digest pointer calculation
exp_ddgst is of type __le32, &cmd->exp_ddgst + cmd->offset increases
&cmd->exp_ddgst by 4 * cmd->offset, fix this by type casting
&cmd->exp_ddgst to u8 *.
Fixes: 872d26a391da ("nvmet-tcp: add NVMe over TCP target 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 'Makefile')
0 files changed, 0 insertions, 0 deletions