From: Kevin Hao <kexin....@windriver.com> The c4fa05422d87 ("smb: client: fix potential OOB in smb2_dump_detail()") was backported from upstream. But the definition of smb_version_operations::calc_smb_size() is different between latest upstream and v5.15. So the calling of calc_smb_size() causes below error: fs/cifs/smb2ops.c:378:33: error: too few arguments to function ‘server->ops->calc_smb_size’ 378 | server->ops->calc_smb_size(buf));
Add the missed parameter to fix this issue. Signed-off-by: Kevin Hao <kexin....@windriver.com> --- fs/cifs/smb2ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 60d42dbfbd4d..d84438f0b73f 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -375,7 +375,7 @@ smb2_dump_detail(void *buf, struct TCP_Server_Info *server) shdr->ProcessId); if (!server->ops->check_message(buf, server->total_read, server)) { cifs_server_dbg(VFS, "smb buf %p len %u\n", buf, - server->ops->calc_smb_size(buf)); + server->ops->calc_smb_size(buf, server)); } #endif } -- 2.45.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14311): https://lists.yoctoproject.org/g/linux-yocto/message/14311 Mute This Topic: https://lists.yoctoproject.org/mt/108053270/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-