aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/9p/client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index 93f442aaa119..781d89a952e4 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -1244,10 +1244,14 @@ struct p9_wstat *p9_client_stat(struct p9_fid *fid)
1244 ret->name, ret->uid, ret->gid, ret->muid, ret->extension, 1244 ret->name, ret->uid, ret->gid, ret->muid, ret->extension,
1245 ret->n_uid, ret->n_gid, ret->n_muid); 1245 ret->n_uid, ret->n_gid, ret->n_muid);
1246 1246
1247 p9_free_req(clnt, req);
1248 return ret;
1249
1247free_and_error: 1250free_and_error:
1248 p9_free_req(clnt, req); 1251 p9_free_req(clnt, req);
1249error: 1252error:
1250 return ret; 1253 kfree(ret);
1254 return ERR_PTR(err);
1251} 1255}
1252EXPORT_SYMBOL(p9_client_stat); 1256EXPORT_SYMBOL(p9_client_stat);
1253 1257