[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 0957f4da91d46ffbe19e3c1687263e6d2fe75127..82c5b00840796d5f82bd6810a92f783b11e953d1 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);