]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: check if SMB1 DOS/SRV error mapping arrays are sorted
authorYouling Tang <tangyouling@kylinos.cn>
Thu, 2 Apr 2026 14:18:38 +0000 (14:18 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Apr 2026 00:58:40 +0000 (19:58 -0500)
commit8c028dd086ade4dd9fed8a4198f25531dcd11dcb
treec67349c826329f95c715f4f4e2c4ac640c0eb4f5
parent95e6b7340957f8b51e6abb97c666eadd37f1f69f
smb/client: check if SMB1 DOS/SRV error mapping arrays are sorted

Although the arrays are sorted at build time, verify the ordering again
when cifs.ko is loaded to avoid potential regressions introduced by
future script changes.

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb1maperror.c