diff options
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> | 2008-03-07 12:40:33 -0500 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@opteron.9grid.us> | 2008-05-14 20:23:26 -0400 |
commit | 728fc4ef17748042d9c71144aa339ed9c68e8b01 (patch) | |
tree | d49236d6c5ef2c39586ffb79b1c22f71a5703cac /net | |
parent | c1549497e903a1ffa1c5808337a987180e480e7a (diff) |
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 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) | |||
154 | spin_lock_init(&clnt->lock); | 154 | spin_lock_init(&clnt->lock); |
155 | INIT_LIST_HEAD(&clnt->fidlist); | 155 | INIT_LIST_HEAD(&clnt->fidlist); |
156 | clnt->fidpool = p9_idpool_create(); | 156 | clnt->fidpool = p9_idpool_create(); |
157 | if (!clnt->fidpool) { | 157 | if (IS_ERR(clnt->fidpool)) { |
158 | err = PTR_ERR(clnt->fidpool); | 158 | err = PTR_ERR(clnt->fidpool); |
159 | clnt->fidpool = NULL; | 159 | clnt->fidpool = NULL; |
160 | goto error; | 160 | goto error; |