Skip to contentSkip to conversation

CIFS: Fix error handling in cifs_push_mandatory_locks

PATCH New Pavel Shilovsky 1 participant 1 message Aug 29, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CIFS: Fix error handling in cifs_push_mandatory_locks

---
 fs/cifs/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/file.c +1 -1
index e8e3d91..46717be 100644
@@ -941,7 +941,7 @@ cifs_push_mandatory_locks(struct cifsFileInfo *cfile)
 	if (!buf) {
 		mutex_unlock(&cinode->lock_mutex);
 		free_xid(xid);
-		return rc;
+		return -ENOMEM;
 	}
 
 	for (i = 0; i < 2; i++) {
Signature · 1 line
1.7.1