Skip to content
Commit 42b62697 authored by Kevin Hao's avatar Kevin Hao Committed by Bruce Ashfield
Browse files

cifs: Fix the calling of smb_version_operations::calc_smb_size()



The c4fa0542 ("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: default avatarKevin Hao <kexin.hao@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent b14acf72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment