[PATCH] nvmet-tcp: fix data digest pointer calculation

Keith Busch kbusch at kernel.org
Wed Oct 27 14:37:35 PDT 2021


On Mon, Oct 25, 2021 at 10:46:54PM +0530, Varun Prakash wrote:
> @@ -702,7 +702,7 @@ static int nvmet_try_send_ddgst(struct nvmet_tcp_cmd *cmd, bool last_in_batch)
>  	struct nvmet_tcp_queue *queue = cmd->queue;
>  	struct msghdr msg = { .msg_flags = MSG_DONTWAIT };
>  	struct kvec iov = {
> -		.iov_base = &cmd->exp_ddgst + cmd->offset,
> +		.iov_base = (u8 *)&cmd->exp_ddgst + cmd->offset,

This certainly works too (and it's already applied anyway), though
everywhere else in this driver casts these to 'void *'.



More information about the Linux-nvme mailing list