diff options
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 7504d1514c77..7b00a16e1352 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -3636,6 +3636,8 @@ findFirstRetry: | |||
3636 | le16_to_cpu(parms->SearchCount); | 3636 | le16_to_cpu(parms->SearchCount); |
3637 | psrch_inf->index_of_last_entry = 2 /* skip . and .. */ + | 3637 | psrch_inf->index_of_last_entry = 2 /* skip . and .. */ + |
3638 | psrch_inf->entries_in_buffer; | 3638 | psrch_inf->entries_in_buffer; |
3639 | psrch_inf->last_entry = psrch_inf->srch_entries_start + | ||
3640 | le16_to_cpu(parms->LastNameOffset); | ||
3639 | *pnetfid = parms->SearchHandle; | 3641 | *pnetfid = parms->SearchHandle; |
3640 | } else { | 3642 | } else { |
3641 | cifs_buf_release(pSMB); | 3643 | cifs_buf_release(pSMB); |
@@ -3751,6 +3753,8 @@ int CIFSFindNext(const int xid, struct cifsTconInfo *tcon, | |||
3751 | le16_to_cpu(parms->SearchCount); | 3753 | le16_to_cpu(parms->SearchCount); |
3752 | psrch_inf->index_of_last_entry += | 3754 | psrch_inf->index_of_last_entry += |
3753 | psrch_inf->entries_in_buffer; | 3755 | psrch_inf->entries_in_buffer; |
3756 | psrch_inf->last_entry = psrch_inf->srch_entries_start + | ||
3757 | le16_to_cpu(parms->LastNameOffset); | ||
3754 | /* cFYI(1,("fnxt2 entries in buf %d index_of_last %d", | 3758 | /* cFYI(1,("fnxt2 entries in buf %d index_of_last %d", |
3755 | psrch_inf->entries_in_buffer, psrch_inf->index_of_last_entry)); */ | 3759 | psrch_inf->entries_in_buffer, psrch_inf->index_of_last_entry)); */ |
3756 | 3760 | ||