]> bbs.cooldavid.org Git - net-next-2.6.git/commit
Cannot allocate memory error on mount
authorSuresh Jayaraman <sjayaraman@suse.de>
Thu, 26 Aug 2010 09:16:09 +0000 (14:46 +0530)
committerSteve French <sfrench@us.ibm.com>
Thu, 26 Aug 2010 16:53:27 +0000 (16:53 +0000)
commitf0138a79d74e1e942970ea163be268cd2e4bbcfc
treeb3c3ddc0dbb3b46ecbb78ab24ea20a405b2b4b49
parentc89e5198b26a869ce2842bad8519264f3394dee9
Cannot allocate memory error on mount

On 08/26/2010 01:56 AM, joe hefner wrote:
> On a recent Fedora (13), I am seeing a mount failure message that I can not explain. I have a Windows Server 2003ýa with a share set up for access only for a specific username (say userfoo). If I try to mount it from Linux,ýusing userfoo and the correct password all is well. If I try with a bad password or with some other username (userbar), it fails with "Permission denied" as expected. If I try to mount as username = administrator, and give the correct administrator password, I would also expect "Permission denied", but I see "Cannot allocate memory" instead.

> ýfs/cifs/netmisc.c: Mapping smb error code 5 to POSIX err -13
> ýfs/cifs/cifssmb.c: Send error in QPathInfo = -13
> ýCIFS VFS: cifs_read_super: get root inode failed

Looks like the commit 0b8f18e3 assumed that cifs_get_inode_info() and
friends fail only due to memory allocation error when the inode is NULL
which is not the case if CIFSSMBQPathInfo() fails and returns an error.
Fix this by propagating the actual error code back.

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c