diff options
| author | Yehyeong Lee <yhlee@isslab.korea.ac.kr> | 2026-08-23 16:46:16 +0900 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-09-03 14:15:10 -0700 |
| commit | df7197ebc7280be9f34dfee9757a933ef0b18741 (patch) | |
| tree | 89c5914d07795e3623a6e7f81a87862a9617be61 /scripts/Makefile.thinlto | |
| parent | 59fe1cbc57235495a5f08dd53db176e3e3250356 (diff) | |
| download | linux-df7197ebc7280be9f34dfee9757a933ef0b18741.tar.gz linux-df7197ebc7280be9f34dfee9757a933ef0b18741.zip | |
nvme-tcp: return -EPROTO for a C2HData on a write
The direction check in nvme_tcp_handle_c2h_data() returns -EIO. A
C2HData PDU naming a command that did not ask for data is a protocol
violation, and the check that rejects a PDU on those grounds a few
lines below it - SUCCESS set without LAST - returns -EPROTO.
No caller distinguishes the two, so this changes the error code alone.
Suggested-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Yehyeong Lee <yhlee@isslab.korea.ac.kr>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
