diff options
| author | Aaditya Kansal <aadityakansal390@gmail.com> | 2025-11-17 21:50:31 +0300 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-12-01 06:11:45 +0300 |
| commit | e4442b2e95baf0901830c924d0a197b100aca970 (patch) | |
| tree | 894b09179fae7825f0be369696de20b01c69bc4f /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
| parent | b39a1833cc4a2755b02603eec3a71a85e9dff926 (diff) | |
| download | linux-e4442b2e95baf0901830c924d0a197b100aca970.tar.xz | |
ksmbd: implement error handling for STATUS_INFO_LENGTH_MISMATCH in smb server
Add STATUS_INFO_LENGTH_MISMATCH mapping to EMSGSIZE.
Currently, STATUS_INFO_LENGTH_MISMATCH has no mapping to any error code,
making it difficult to distinguish between invalid parameters and length
mismatch.
Map STATUS_INFO_LENGTH_MISMATCH to EMSGSIZE while keeping the EINVAL for
invalid parameters. Although the buf_len check only checks for buf_size
being less than required, there was no error code for lower buf_size.
Hence, EMSGSIZE is used.
Signed-off-by: Aaditya Kansal <aadityakansal390@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions
