mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: cifs: fix error handling in parse_DFS_referrals
This commit is contained in:
commit
bd67ce0f66
1 changed files with 4 additions and 8 deletions
|
@ -3976,9 +3976,8 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr,
|
|||
max_len = data_end - temp;
|
||||
node->path_name = cifs_strndup_from_ucs(temp, max_len,
|
||||
is_unicode, nls_codepage);
|
||||
if (IS_ERR(node->path_name)) {
|
||||
rc = PTR_ERR(node->path_name);
|
||||
node->path_name = NULL;
|
||||
if (!node->path_name) {
|
||||
rc = -ENOMEM;
|
||||
goto parse_DFS_referrals_exit;
|
||||
}
|
||||
|
||||
|
@ -3987,11 +3986,8 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr,
|
|||
max_len = data_end - temp;
|
||||
node->node_name = cifs_strndup_from_ucs(temp, max_len,
|
||||
is_unicode, nls_codepage);
|
||||
if (IS_ERR(node->node_name)) {
|
||||
rc = PTR_ERR(node->node_name);
|
||||
node->node_name = NULL;
|
||||
goto parse_DFS_referrals_exit;
|
||||
}
|
||||
if (!node->node_name)
|
||||
rc = -ENOMEM;
|
||||
}
|
||||
|
||||
parse_DFS_referrals_exit:
|
||||
|
|
Loading…
Reference in a new issue