]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb3: missing null check in SMB2_change_notify
authorSteve French <stfrench@microsoft.com>
Thu, 25 May 2023 23:53:28 +0000 (18:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jun 2023 09:14:18 +0000 (11:14 +0200)
commit18c7c10352c0f92d2ca7b140a1695eb67f6f1a8a
treeb2425cb3d20316cd7c1234341d70dcd698798248
parent336a79d6664a66f5e498fe503a91f79d0d9eb598
smb3: missing null check in SMB2_change_notify

[ Upstream commit b535cc796a4b4942cd189652588e8d37c1f5925a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2pdu.c