diff options
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> | 2008-03-07 11:40:33 -0600 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@opteron.9grid.us> | 2008-05-14 19:23:26 -0500 |
commit | 728fc4ef17748042d9c71144aa339ed9c68e8b01 (patch) | |
tree | d49236d6c5ef2c39586ffb79b1c22f71a5703cac /net | |
parent | c1549497e903a1ffa1c5808337a987180e480e7a (diff) | |
download | linux-3.10-728fc4ef17748042d9c71144aa339ed9c68e8b01.tar.gz linux-3.10-728fc4ef17748042d9c71144aa339ed9c68e8b01.tar.bz2 linux-3.10-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')
-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 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; |