X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2F9p%2Fconv.c;h=d979d958ea199c88dea062fa9fa6f797872fda6a;hb=87bd1e9aaf067050bd88b3219b1582e8f67f7b87;hp=37451178e7618013eb38ab7c2f9fae79308b3391;hpb=8f41958bdd577731f7411c9605cfaa9db6766809;p=linux-2.6 diff --git a/net/9p/conv.c b/net/9p/conv.c index 37451178e7..d979d958ea 100644 --- a/net/9p/conv.c +++ b/net/9p/conv.c @@ -763,6 +763,7 @@ struct p9_fcall *p9_create_twrite(u32 fid, u64 offset, u32 count, if (err) { kfree(fc); fc = ERR_PTR(err); + goto error; } if (buf_check_overflow(bufp)) { @@ -795,6 +796,7 @@ struct p9_fcall *p9_create_twrite_u(u32 fid, u64 offset, u32 count, if (err) { kfree(fc); fc = ERR_PTR(err); + goto error; } if (buf_check_overflow(bufp)) {