summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2024-01-05 09:14:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-25 15:35:55 -0800
commit2ed3d35328901ed81baeebc3a7f4502c3dfd95f0 (patch)
tree305c9b97c104ebccd7c0284f054413325ee1c63e /drivers/pci/controller/dwc
parent79e9dfd7f89a362d9a987b9aff10d3899de7ab23 (diff)
nvmet-tcp: Fix the H2C expected PDU len calculation
[ Upstream commit 9a1abc24850eb759e36a2f8869161c3b7254c904 ] The nvmet_tcp_handle_h2c_data_pdu() function should take into consideration the possibility that the header digest and/or the data digests are enabled when calculating the expected PDU length, before comparing it to the value stored in cmd->pdu_len. Fixes: efa56305908b ("nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length") Signed-off-by: Maurizio Lombardi <mlombard@redhat.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions