diff mbox

[V9fs-developer] fs/9p: destroy fid on failed remove

Message ID 1278059464-22255-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Aneesh Kumar K.V July 2, 2010, 8:31 a.m. UTC
None
diff mbox

Patch

diff --git a/net/9p/client.c b/net/9p/client.c
index 47a994b..a34a799 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -1140,9 +1140,8 @@  int p9_client_remove(struct p9_fid *fid)
 	P9_DPRINTK(P9_DEBUG_9P, "<<< RREMOVE fid %d\n", fid->fid);
 
 	p9_free_req(clnt, req);
-	p9_fid_destroy(fid);
-
 error:
+	p9_fid_destroy(fid);
 	return err;
 }
 EXPORT_SYMBOL(p9_client_remove);