From: Al Viro Date: Fri, 30 Sep 2005 02:15:08 +0000 (+0100) Subject: [PATCH] missing ERR_PTR in 9fs X-Git-Tag: v2.6.14-rc3~42 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=192eaa28ba7b44485e521df7ba7a2ccbc4cc4d13;p=linux-2.6-omap-h63xx.git [PATCH] missing ERR_PTR in 9fs Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 0957f4da91d..82c5b008407 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c @@ -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);