diff options
Diffstat (limited to 'net/9p/trans_fd.c')
-rw-r--r-- | net/9p/trans_fd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index 0b4eb5f78356..d652baf5ff91 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c | |||
@@ -870,8 +870,10 @@ static struct p9_req *p9_send_request(struct p9_conn *m, | |||
870 | else | 870 | else |
871 | n = p9_mux_get_tag(m); | 871 | n = p9_mux_get_tag(m); |
872 | 872 | ||
873 | if (n < 0) | 873 | if (n < 0) { |
874 | kfree(req); | ||
874 | return ERR_PTR(-ENOMEM); | 875 | return ERR_PTR(-ENOMEM); |
876 | } | ||
875 | 877 | ||
876 | p9_set_tag(tc, n); | 878 | p9_set_tag(tc, n); |
877 | 879 | ||