]> git.baikalelectronics.ru Git - 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)
commit5fc7262312e8537e0bbc8832cd6f65e16d91f8bc
tree1165e5c3172792bf9d9ce4340380b9e7c73b7499
parent4b68fbe2e3cc8adb79c8e2cdfea3d8c1f9e3cf4c
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