Skip to contentSkip to conversation

missing ERR_PTR in 9fs

PATCH New Al Viro 1 participant 1 message Sep 30, 2005 9P file system

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 missing ERR_PTR in 9fs

----

fs/9p/vfs_super.c +1 -1
diff -urN RC14-rc2-git6-base/fs/9p/vfs_super.c current/fs/9p/vfs_super.c
@@ -129,7 +129,7 @@
 
 	if ((newfid = v9fs_session_init(v9ses, dev_name, data)) < 0) {
 		dprintk(DEBUG_ERROR, "problem initiating session\n");
-		return newfid;
+		return ERR_PTR(newfid);
 	}
 
 	sb = sget(fs_type, NULL, v9fs_set_super, v9ses);