diff options
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> | 2008-03-07 18:40:33 +0100 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@opteron.9grid.us> | 2008-05-15 02:23:26 +0200 |
commit | 728fc4ef17748042d9c71144aa339ed9c68e8b01 (patch) | |
tree | d49236d6c5ef2c39586ffb79b1c22f71a5703cac /net/9p/client.c | |
parent | 9p: use struct mutex instead of struct semaphore (diff) | |
download | linux-728fc4ef17748042d9c71144aa339ed9c68e8b01.tar.xz linux-728fc4ef17748042d9c71144aa339ed9c68e8b01.zip |
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 <jeffpc@josefsipek.net>
Acked-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/client.c')
-rw-r--r-- | net/9p/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index 553c34e9f296..2ffe40cf2f01 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; |