smb: client: add NULL check in automount_fullpath
authorRuben Devos <devosruben6@gmail.com>
Sun, 1 Jun 2025 17:18:55 +0000 (19:18 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 1 Jun 2025 20:12:11 +0000 (15:12 -0500)
commitf1e7a277a1736e12cc4bd6d93b8a5c439b8ca20c
tree73fe278a302879e35348d2cb19896fe620fdeac6
parent55423e9c534d6b6139f7984d59c627eb86d5ce2e
smb: client: add NULL check in automount_fullpath

page is checked for null in __build_path_from_dentry_optional_prefix
when tcon->origin_fullpath is not set. However, the check is missing when
it is set.
Add a check to prevent a potential NULL pointer dereference.

Signed-off-by: Ruben Devos <devosruben6@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/namespace.c