diff options
author | Maurizio Lombardi <mlombard@redhat.com> | 2024-01-05 11:14:44 +0300 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-01-08 21:09:53 +0300 |
commit | 9a1abc24850eb759e36a2f8869161c3b7254c904 (patch) | |
tree | 889347619d89a52dc0c402e460d2142bed27b0ab /drivers/fpga/fpga-bridge.c | |
parent | 45c36f04f1beb7c4c45f5910a1f69d6d9d5a19fb (diff) | |
download | linux-9a1abc24850eb759e36a2f8869161c3b7254c904.tar.xz |
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 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions