public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix missing braces in ncpfs:ncp_lookup
@ 2013-09-05  4:04 Dave Jones
  2013-09-05  4:17 ` Joe Perches
  2013-09-05  4:29 ` Al Viro
  0 siblings, 2 replies; 3+ messages in thread
From: Dave Jones @ 2013-09-05  4:04 UTC (permalink / raw)
  To: viro; +Cc: Linux Kernel

Signed-off-by: Dave Jones <davej@fedoraproject.org>

diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index 3be0474..1f6419f 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -857,10 +857,11 @@ static struct dentry *ncp_lookup(struct inode *dir, struct dentry *dentry, unsig
 	if (ncp_is_server_root(dir)) {
 		res = ncp_io2vol(server, __name, &len, dentry->d_name.name,
 				 dentry->d_name.len, 1);
-		if (!res)
+		if (!res) {
 			res = ncp_lookup_volume(server, __name, &(finfo.i));
 			if (!res)
 				ncp_update_known_namespace(server, finfo.i.volNumber, NULL);
+		}
 	} else {
 		res = ncp_io2vol(server, __name, &len, dentry->d_name.name,
 				 dentry->d_name.len, !ncp_preserve_case(dir));

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-05  4:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05  4:04 [PATCH] Fix missing braces in ncpfs:ncp_lookup Dave Jones
2013-09-05  4:17 ` Joe Perches
2013-09-05  4:29 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox