aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2024-01-05 09:14:44 +0100
committerKeith Busch <kbusch@kernel.org>2024-01-08 10:09:53 -0800
commit9a1abc24850eb759e36a2f8869161c3b7254c904 (patch)
tree889347619d89a52dc0c402e460d2142bed27b0ab /scripts/gdb/linux/utils.py
parent45c36f04f1beb7c4c45f5910a1f69d6d9d5a19fb (diff)
downloadlinux-9a1abc24850eb759e36a2f8869161c3b7254c904.tar.gz
linux-9a1abc24850eb759e36a2f8869161c3b7254c904.tar.bz2
linux-9a1abc24850eb759e36a2f8869161c3b7254c904.zip
nvmet-tcp: Fix the H2C expected PDU len calculation
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions