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)
commit20b135e48cdda7a7dfccef7286def66e5c9686c3
tree708ca016a0346701a0b47d583eb2bc583039372c
parent327a8d76b1ac2037f87bf041f3bc076407284ffc
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: 7efd08158261 ("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