cifs: don't leak nls on mount failure
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 17 Jun 2011 12:49:12 +0000 (08:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 24 Jun 2011 22:39:41 +0000 (18:39 -0400)
commitca171baaad1420a29cca98be5bdf5596cd70b294
tree0b689378dfa3b10002f60d57b68b4fee05b4e94b
parent6d6861757dfadb7d6aec6bb34acd471210a755f9
cifs: don't leak nls on mount failure

if cifs_sb allocation fails, we still need to drop nls we'd stashed
into volume_info - the one we would've copied to cifs_sb if we could
allocate the latter.

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