author | Julia Lawall
<julia@diku.dk> 2008-09-24 21:22:22 UTC |
committer | Eric Van Hensbergen
<ericvh@ericvh-desktop.austin.ibm.com> 2008-09-24 21:22:22 UTC |
parent | 206ca50de77033c6cc17d0e14fbb12d119a67b01 |
net/9p/trans_fd.c | +3 | -1 |
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index 0b4eb5f7835..d652baf5ff9 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, else n = p9_mux_get_tag(m); - if (n < 0) + if (n < 0) { + kfree(req); return ERR_PTR(-ENOMEM); + } p9_set_tag(tc, n);