Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04b6e6ec authored by Steve French's avatar Steve French
Browse files

[CIFS] Fix mem leak on dfs referral

parent 8b1327f6
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -211,7 +211,10 @@ int cifs_get_inode_info_unix(struct inode **pinode,
	if (rc) {
		if (rc == -EREMOTE && !is_dfs_referral) {
			is_dfs_referral = true;
			if (full_path != search_path) {
				kfree(full_path);
				full_path = search_path;
			}
			goto try_again_CIFSSMBUnixQPathInfo;
		}
		goto cgiiu_exit;
@@ -422,7 +425,10 @@ int cifs_get_inode_info(struct inode **pinode,
	if (rc) {
		if (rc == -EREMOTE && !is_dfs_referral) {
			is_dfs_referral = true;
			if (full_path != search_path) {
				kfree(full_path);
				full_path = search_path;
			}
			goto try_again_CIFSSMBQPathInfo;
		}
		goto cgii_exit;