diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-28 17:05:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-28 17:05:15 -0400 |
commit | 7be0d4f90ad8e0f9591fd311765a212a42e26b13 (patch) | |
tree | de0050139b877edea5e9372e13bbcb152daaf3b3 | |
parent | 62b88dc1912c7d105f768e0e64756f8bd83936db (diff) | |
parent | f0138a79d74e1e942970ea163be268cd2e4bbcfc (diff) |
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:
Cannot allocate memory error on mount
[CIFS] Eliminate unused variable warning
-rw-r--r-- | fs/cifs/inode.c | 2 | ||||
-rw-r--r-- | fs/cifs/sess.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 4bc47e5b5f29..86a164f08a74 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -834,7 +834,7 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino) | |||
834 | xid, NULL); | 834 | xid, NULL); |
835 | 835 | ||
836 | if (!inode) | 836 | if (!inode) |
837 | return ERR_PTR(-ENOMEM); | 837 | return ERR_PTR(rc); |
838 | 838 | ||
839 | #ifdef CONFIG_CIFS_FSCACHE | 839 | #ifdef CONFIG_CIFS_FSCACHE |
840 | /* populate tcon->resource_id */ | 840 | /* populate tcon->resource_id */ |
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 4788e16a02cc..795095f4eac6 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c | |||
@@ -620,7 +620,6 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, | |||
620 | struct key *spnego_key = NULL; | 620 | struct key *spnego_key = NULL; |
621 | __le32 phase = NtLmNegotiate; /* NTLMSSP, if needed, is multistage */ | 621 | __le32 phase = NtLmNegotiate; /* NTLMSSP, if needed, is multistage */ |
622 | bool first_time; | 622 | bool first_time; |
623 | char *ntlmsspblob; | ||
624 | 623 | ||
625 | if (ses == NULL) | 624 | if (ses == NULL) |
626 | return -EINVAL; | 625 | return -EINVAL; |
@@ -868,6 +867,8 @@ ssetup_ntlmssp_authenticate: | |||
868 | iov[1].iov_base = &pSMB->req.SecurityBlob[0]; | 867 | iov[1].iov_base = &pSMB->req.SecurityBlob[0]; |
869 | } else if (phase == NtLmAuthenticate) { | 868 | } else if (phase == NtLmAuthenticate) { |
870 | int blob_len; | 869 | int blob_len; |
870 | char *ntlmsspblob; | ||
871 | |||
871 | ntlmsspblob = kmalloc(5 * | 872 | ntlmsspblob = kmalloc(5 * |
872 | sizeof(struct _AUTHENTICATE_MESSAGE), | 873 | sizeof(struct _AUTHENTICATE_MESSAGE), |
873 | GFP_KERNEL); | 874 | GFP_KERNEL); |