diff options
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index fbe651858c88..e555cb5cf493 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -2628,6 +2628,9 @@ int CIFSFindNext(const int xid, struct cifsTconInfo *tcon, | |||
2628 | if(name_len < PATH_MAX) { | 2628 | if(name_len < PATH_MAX) { |
2629 | memcpy(pSMB->ResumeFileName, psrch_inf->presume_name, name_len); | 2629 | memcpy(pSMB->ResumeFileName, psrch_inf->presume_name, name_len); |
2630 | byte_count += name_len; | 2630 | byte_count += name_len; |
2631 | /* 14 byte parm len above enough for 2 byte null terminator */ | ||
2632 | pSMB->ResumeFileName[name_len] = 0; | ||
2633 | pSMB->ResumeFileName[name_len+1] = 0; | ||
2631 | } else { | 2634 | } else { |
2632 | rc = -EINVAL; | 2635 | rc = -EINVAL; |
2633 | goto FNext2_err_exit; | 2636 | goto FNext2_err_exit; |