diff options
-rw-r--r-- | net/9p/client.c | 6 |
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 | |||
1247 | free_and_error: | 1250 | free_and_error: |
1248 | p9_free_req(clnt, req); | 1251 | p9_free_req(clnt, req); |
1249 | error: | 1252 | error: |
1250 | return ret; | 1253 | kfree(ret); |
1254 | return ERR_PTR(err); | ||
1251 | } | 1255 | } |
1252 | EXPORT_SYMBOL(p9_client_stat); | 1256 | EXPORT_SYMBOL(p9_client_stat); |
1253 | 1257 | ||