Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=728fc4... Commit: 728fc4ef17748042d9c71144aa339ed9c68e8b01 Parent: c1549497e903a1ffa1c5808337a987180e480e7a Author: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> AuthorDate: Fri Mar 7 11:40:33 2008 -0600 Committer: Eric Van Hensbergen <ericvh@opteron.9grid.us> CommitDate: Wed May 14 19:23:26 2008 -0500 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> --- 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 553c34e..2ffe40c 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; -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
