OSDN Git Service

cifs: Only free DFS target list if we actually got one
authorPaulo Alcantara <palcantara@suse.de>
Tue, 20 Nov 2018 16:37:18 +0000 (14:37 -0200)
committerSteve French <stfrench@microsoft.com>
Fri, 28 Dec 2018 16:13:11 +0000 (10:13 -0600)
commit23324407143dd923660378fd9b40b9a711972269
treeb32787ae094f49520eaeef321f66d4c43479adac
parente511d31753e3f7c13bbd402399ffac676d451a7c
cifs: Only free DFS target list if we actually got one

Fix potential NULL ptr deref when DFS target list is empty.

Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c