[PATCH] cifs: Fix printing Status code into dmesg
Steve French
smfrench at gmail.com
Mon Jan 20 01:48:39 UTC 2025
Any thoughts on the attached patch (which is tentatively in
cifs-2.6.git for-next)?
NT Status code is 32-bit number, so for comparing two NT Status codes is
needed to check all 32 bits, and not just low 24 bits.
Before this change kernel printed message:
"Status code returned 0x8000002d NT_STATUS_NOT_COMMITTED"
It was incorrect as because NT_STATUS_NOT_COMMITTED is defined as
0xC000002d and 0x8000002d has defined name NT_STATUS_STOPPED_ON_SYMLINK.
With this change kernel prints message:
"Status code returned 0x8000002d NT_STATUS_STOPPED_ON_SYMLINK"
Signed-off-by: Pali Rohár <pali at kernel.org>
--
Thanks,
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0042-cifs-Fix-printing-Status-code-into-dmesg.patch
Type: text/x-patch
Size: 1480 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20250119/3529a0b4/0042-cifs-Fix-printing-Status-code-into-dmesg.bin>
More information about the samba-technical
mailing list