diff options
-rw-r--r-- | fs/cifs/CHANGES | 3 | ||||
-rw-r--r-- | fs/cifs/cifssmb.c | 1 |
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 | |||
12 | cifsacl flag). Fix prefixpath path separator so we can handle mounts | 12 | cifsacl flag). Fix prefixpath path separator so we can handle mounts |
13 | with prefixpaths longer than one directory (one path component) when | 13 | with prefixpaths longer than one directory (one path component) when |
14 | mounted to Windows servers. Fix slow file open when cifsacl | 14 | mounted to Windows servers. Fix slow file open when cifsacl |
15 | enabled. | 15 | enabled. Fix memory leak in FindNext when the SMB call returns -EBADF. |
16 | |||
16 | 17 | ||
17 | Version 1.51 | 18 | Version 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)); |