From: Josef 'Jeff' Sipek Date: Fri, 7 Mar 2008 17:40:33 +0000 (-0600) Subject: 9p: Correct fidpool creation failure in p9_client_create X-Git-Tag: v2.6.26-rc3~33^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=728fc4ef17748042d9c71144aa339ed9c68e8b01;p=linux-2.6-omap-h63xx.git 9p: Correct fidpool creation failure in p9_client_create On error, p9_idpool_create returns an ERR_PTR-encoded errno. Signed-off-by: Josef 'Jeff' Sipek Acked-by: Eric Van Hensbergen --- diff --git a/net/9p/client.c b/net/9p/client.c index 553c34e9f29..2ffe40cf2f0 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -154,7 +154,7 @@ struct p9_client *p9_client_create(const char *dev_name, char *options) spin_lock_init(&clnt->lock); INIT_LIST_HEAD(&clnt->fidlist); clnt->fidpool = p9_idpool_create(); - if (!clnt->fidpool) { + if (IS_ERR(clnt->fidpool)) { err = PTR_ERR(clnt->fidpool); clnt->fidpool = NULL; goto error;