linux/fs/smb
ZhangGuoDong 5566a9eeb0 smb/client: fix buffer size for smb311_posix_qinfo in SMB311_posix_query_info()
[ Upstream commit 9621b996e4 ]

SMB311_posix_query_info() is currently unused, but it may still be used in
some stable versions, so these changes are submitted as a separate patch.

Use `sizeof(struct smb311_posix_qinfo)` instead of sizeof its pointer,
so the allocated buffer matches the actual struct size.

Fixes: b1bc1874b8 ("smb311: Add support for SMB311 query info (non-compounded)")
Reported-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-12 07:09:56 -04:00
..
client smb/client: fix buffer size for smb311_posix_qinfo in SMB311_posix_query_info() 2026-03-12 07:09:56 -04:00
common smb: smbdirect: introduce smbdirect_socket.send_io.bcredits.* 2026-02-16 10:19:41 +01:00
server ksmbd: call ksmbd_vfs_kern_path_end_removing() on some error paths 2026-03-12 07:09:45 -04:00
Kconfig smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00
Makefile smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00