diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-18 09:30:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-18 09:30:07 -0700 |
commit | edd5f25f7475013b44f7942bb3b25022792a9c9d (patch) | |
tree | 6db5ebb2deb385b029158c5727835b5b71c9603b /fs/cifs/sess.c | |
parent | d2d56c5f51028cb9f3d800882eb6f4cbd3f9099f (diff) | |
parent | 5e6e6232753482dc0024a319b9d8f611d7a80c19 (diff) | |
download | linux-rt-edd5f25f7475013b44f7942bb3b25022792a9c9d.tar.gz |
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] Check return code on failed alloc
[CIFS] Update CIFS project web site
[CIFS] Fix hang in find_writable_file
Diffstat (limited to 'fs/cifs/sess.c')
-rw-r--r-- | fs/cifs/sess.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 2ea027dda215..892be9b4d1f3 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -372,6 +372,10 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time, /* 2000 big enough to fit max user, domain, NOS name etc. */ str_area = kmalloc(2000, GFP_KERNEL); + if (str_area == NULL) { + cifs_small_buf_release(smb_buf); + return -ENOMEM; + } bcc_ptr = str_area; ses->flags &= ~CIFS_SES_LANMAN; |