X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=net%2F9p%2Fclient.c;h=5c1343195292c8f474ff683c73c8f73aa51843a0;hb=293bccc5b202400a6e47bd42e852d50d7d991b4e;hp=18c5271910dc2c1e1715efcd2b448b7cee6a844b;hpb=e7655d2b25466c534ed1f539367dae595bb0bd20;p=linux-2.6-microblaze.git diff --git a/net/9p/client.c b/net/9p/client.c index 18c5271910dc..5c1343195292 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -225,7 +225,8 @@ static int parse_opts(char *opts, struct p9_client *clnt) } free_and_return: - v9fs_put_trans(clnt->trans_mod); + if (ret) + v9fs_put_trans(clnt->trans_mod); kfree(tmp_options); return ret; }