summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDaniel Wagner <dwagner@suse.de>2024-06-12 16:11:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-25 09:49:13 +0200
commit30d35b24b7957922f81cfdaa66f2e1b1e9b9aed2 (patch)
tree12adef4364fe9ef4b2bc94c5235f4f83ee5f7f94 /net
parentf3ab45aacd25d957547fb6d115c1574c20964b3b (diff)
downloadlinux-30d35b24b7957922f81cfdaa66f2e1b1e9b9aed2.tar.gz
linux-30d35b24b7957922f81cfdaa66f2e1b1e9b9aed2.tar.bz2
linux-30d35b24b7957922f81cfdaa66f2e1b1e9b9aed2.zip
nvmet: always initialize cqe.result
[ Upstream commit cd0c1b8e045a8d2785342b385cb2684d9b48e426 ] The spec doesn't mandate that the first two double words (aka results) for the command queue entry need to be set to 0 when they are not used (not specified). Though, the target implemention returns 0 for TCP and FC but not for RDMA. Let's make RDMA behave the same and thus explicitly initializing the result field. This prevents leaking any data from the stack. Signed-off-by: Daniel Wagner <dwagner@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions