aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/cifs/CHANGES3
-rw-r--r--fs/cifs/cifssmb.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/CHANGES b/fs/cifs/CHANGES
index 8355e918fddf..502a4c2b8414 100644
--- a/fs/cifs/CHANGES
+++ b/fs/cifs/CHANGES
@@ -12,7 +12,8 @@ Add ability to modify cifs acls for handling chmod (when mounted with
12cifsacl flag). Fix prefixpath path separator so we can handle mounts 12cifsacl flag). Fix prefixpath path separator so we can handle mounts
13with prefixpaths longer than one directory (one path component) when 13with prefixpaths longer than one directory (one path component) when
14mounted to Windows servers. Fix slow file open when cifsacl 14mounted to Windows servers. Fix slow file open when cifsacl
15enabled. 15enabled. Fix memory leak in FindNext when the SMB call returns -EBADF.
16
16 17
17Version 1.51 18Version 1.51
18------------ 19------------
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 95fbba4ea7d4..641cc8ffc51b 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -3679,6 +3679,7 @@ int CIFSFindNext(const int xid, struct cifsTconInfo *tcon,
3679 if (rc) { 3679 if (rc) {
3680 if (rc == -EBADF) { 3680 if (rc == -EBADF) {
3681 psrch_inf->endOfSearch = true; 3681 psrch_inf->endOfSearch = true;
3682 cifs_buf_release(pSMB);
3682 rc = 0; /* search probably was closed at end of search*/ 3683 rc = 0; /* search probably was closed at end of search*/
3683 } else 3684 } else
3684 cFYI(1, ("FindNext returned = %d", rc)); 3685 cFYI(1, ("FindNext returned = %d", rc));