]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix an error pointer dereference in cifs_mount()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 5 Aug 2020 09:52:07 +0000 (12:52 +0300)
committerSteve French <stfrench@microsoft.com>
Fri, 7 Aug 2020 03:06:10 +0000 (22:06 -0500)
commit99c077dba6cb6af0dc42d10338b1aa2d9b28259d
tree708ca016a0346701a0b47d583eb2bc583039372c
parent90c8b9675e135b5091930b71e61c6fbb49af2e34
cifs: Fix an error pointer dereference in cifs_mount()

The error handling calls kfree(full_path) so we can't let it be a NULL
pointer.  There used to be a NULL assignment here but we accidentally
deleted it.  Add it back.

Fixes: e8e19e6821b9 ("cifs: document and cleanup dfs mount")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
fs/cifs/connect.c