Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339473
b: refs/heads/master
c: 6ee9542
h: refs/heads/master
i:
  339471: 6366492
v: v3
  • Loading branch information
Jeff Layton authored and Steve French committed Dec 5, 2012
1 parent cfb3c9b commit 8f8dd23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9fa114f74feb140ac93e5983428c8f9312ffd6c2
refs/heads/master: 6ee9542a8701a906dbe5141bf1e1ad395d957222
7 changes: 4 additions & 3 deletions trunk/fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,9 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
separator[1] = 0;
delim = separator[0];

/* ensure we always start with zeroed-out smb_vol */
memset(vol, 0, sizeof(*vol));

/*
* does not have to be perfect mapping since field is
* informational, only used for servers that do not support
Expand Down Expand Up @@ -3314,7 +3317,6 @@ expand_dfs_referral(const unsigned int xid, struct cifs_ses *ses,
mdata = NULL;
} else {
cleanup_volume_info_contents(volume_info);
memset(volume_info, '\0', sizeof(*volume_info));
rc = cifs_setup_volume_info(volume_info, mdata,
fake_devname);
}
Expand All @@ -3336,7 +3338,6 @@ cifs_setup_volume_info(struct smb_vol *volume_info, char *mount_data,
if (cifs_parse_mount_options(mount_data, devname, volume_info))
return -EINVAL;


if (volume_info->nullauth) {
cFYI(1, "Anonymous login");
kfree(volume_info->username);
Expand Down Expand Up @@ -3373,7 +3374,7 @@ cifs_get_volume_info(char *mount_data, const char *devname)
int rc;
struct smb_vol *volume_info;

volume_info = kzalloc(sizeof(struct smb_vol), GFP_KERNEL);
volume_info = kmalloc(sizeof(struct smb_vol), GFP_KERNEL);
if (!volume_info)
return ERR_PTR(-ENOMEM);

Expand Down

0 comments on commit 8f8dd23

Please sign in to comment.