smb3: missing null check in SMB2_change_notify
authorSteve French <stfrench@microsoft.com>
Thu, 1 Jun 2023 04:55:31 +0000 (23:55 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 1 Jun 2023 04:55:31 +0000 (23:55 -0500)
commit520506d3ba0425525877a5fb1e971f97ec35ea5c
tree821967cb0b4a60f87aee0a5aeb2a4b8fed07da72
parente76e35342205fd6ca509ee2019014cdb889a6b05
smb3: missing null check in SMB2_change_notify

If plen is null when passed in, we only checked for null
in one of the two places where it could be used. Although
plen is always valid (not null) for current callers of the
SMB2_change_notify function, this change makes it more consistent.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/all/202305251831.3V1gbbFs-lkp@intel.com/
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c