summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-08-28 21:05:15 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-28 21:05:15 (GMT)
commit7be0d4f90ad8e0f9591fd311765a212a42e26b13 (patch)
treede0050139b877edea5e9372e13bbcb152daaf3b3
parent62b88dc1912c7d105f768e0e64756f8bd83936db (diff)
parentf0138a79d74e1e942970ea163be268cd2e4bbcfc (diff)
downloadlinux-7be0d4f90ad8e0f9591fd311765a212a42e26b13.tar.xz
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.c2
-rw-r--r--fs/cifs/sess.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 4bc47e5..86a164f 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)
xid, NULL);
if (!inode)
- return ERR_PTR(-ENOMEM);
+ return ERR_PTR(rc);
#ifdef CONFIG_CIFS_FSCACHE
/* populate tcon->resource_id */
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index 4788e16..795095f 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -620,7 +620,6 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses,
struct key *spnego_key = NULL;
__le32 phase = NtLmNegotiate; /* NTLMSSP, if needed, is multistage */
bool first_time;
- char *ntlmsspblob;
if (ses == NULL)
return -EINVAL;
@@ -868,6 +867,8 @@ ssetup_ntlmssp_authenticate:
iov[1].iov_base = &pSMB->req.SecurityBlob[0];
} else if (phase == NtLmAuthenticate) {
int blob_len;
+ char *ntlmsspblob;
+
ntlmsspblob = kmalloc(5 *
sizeof(struct _AUTHENTICATE_MESSAGE),
GFP_KERNEL);