summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2022-07-19 14:31:51 -0300
committerSteve French <stfrench@microsoft.com>2022-08-01 01:34:44 -0500
commitda3847894fddc27ca95d5ac0012f444a77a5e0c3 (patch)
tree1f330027713bdc0c4c397bcf9740bd17220da702 /kernel
parentc6f62f81b488d00afaa86bae26c6ce9ab12c709e (diff)
downloadlinux-da3847894fddc27ca95d5ac0012f444a77a5e0c3.tar.gz
linux-da3847894fddc27ca95d5ac0012f444a77a5e0c3.tar.bz2
linux-da3847894fddc27ca95d5ac0012f444a77a5e0c3.zip
smb2: small refactor in smb2_check_message()
If the command is SMB2_IOCTL, OutputLength and OutputContext are optional and can be zero, so return early and skip calculated length check. Move the mismatched length message to the end of the check, to avoid unnecessary logs when the check was not a real miscalculation. Also change the pr_warn_once() to a pr_warn() so we're sure to get a log for the real mismatches. Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions