]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
cifs: more breakage on mount failures
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 17 Jun 2011 13:50:44 +0000 (09:50 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 24 Jun 2011 22:39:42 +0000 (18:39 -0400)
commitfa18f1bdce898f0efd0c8639c901d826d01be04f
tree1165e5c3172792bf9d9ce4340380b9e7c73b7499
parentee01a14d9ddcf3f832f9ceb837888501cb496e27
cifs: more breakage on mount failures

if cifs_get_root() fails, we end up with ->mount() returning NULL,
which is not what callers expect.  Moreover, in case of superblock
reuse we end up leaking a superblock reference...

Acked-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cifs/cifsfs.c