diff options
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) | |||
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; |