CIFS: Fix wrong restart readdir for SMB1
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / cifs / readdir.c
index 036279c064ff423726d27f4a192ece0b3eb3f057..87d125f682cd2a661d05103d75df27178315a493 100644 (file)
@@ -585,8 +585,8 @@ find_cifs_entry(const unsigned int xid, struct cifs_tcon *tcon,
                if (!cfile->srch_inf.endOfSearch && !cfile->invalidHandle) {
                        cfile->invalidHandle = true;
                        spin_unlock(&cifs_file_list_lock);
-                       if (server->ops->close)
-                               server->ops->close(xid, tcon, &cfile->fid);
+                       if (server->ops->close_dir)
+                               server->ops->close_dir(xid, tcon, &cfile->fid);
                } else
                        spin_unlock(&cifs_file_list_lock);
                if (cfile->srch_inf.ntwrk_buf_start) {