[PATCH] missing ERR_PTR in 9fs
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 30 Sep 2005 02:15:08 +0000 (03:15 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 30 Sep 2005 15:42:23 +0000 (08:42 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/9p/vfs_super.c

index 0957f4d..82c5b00 100644 (file)
@@ -129,7 +129,7 @@ static struct super_block *v9fs_get_sb(struct file_system_type
 
        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);