Skip to contentSkip to conversation

CIFS: fix unbalanced calls to Get/FreeXid

PATCH Applied Cyrill Gorcunov 2 participants 2 messages Aug 23, 2007 – Aug 24, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CIFS: fix unbalanced calls to Get/FreeXid

This patch fixes unbalanced calls to GetXid/FreeXid.

---

 fs/cifs/cifsfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/cifsfs.c +1 -1
index cabb6a5..2493cc4 100644
@@ -346,7 +346,7 @@ int cifs_xquota_set(struct super_block *sb, int quota_type, qid_t qid,
 	if (pTcon) {
 		cFYI(1, ("set type: 0x%x id: %d", quota_type, qid));
 	} else {
-		return -EIO;
+		rc = -EIO;
 	}
 
 	FreeXid(xid);
Applied
#1 lore raw

merged into cifs-2.6.git tree

Quoted 22 lines · Cyrill Gorcunov

This patch fixes unbalanced calls to GetXid/FreeXid.

---

 fs/cifs/cifsfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/cifsfs.c +1 -1
index cabb6a5..2493cc4 100644
@@ -346,7 +346,7 @@ int cifs_xquota_set(struct super_block *sb, int quota_type, qid_t qid,
        if (pTcon) {
                cFYI(1, ("set type: 0x%x id: %d", quota_type, qid));
        } else {
-               return -EIO;
+               rc = -EIO;
        }
 
        FreeXid(xid);
Signature · 3 lines
Thanks,

Steve