ntfs_readdir(): fix reading dirs with over 600,000 files (GeorgeK, Szaka)

master
szaka 2007-11-15 07:35:19 +00:00
parent d4b91d350c
commit 78845d0898
1 changed files with 1 additions and 0 deletions

View File

@ -883,6 +883,7 @@ find_next_index_buffer:
if (bmp_buf_pos >> 3 < bmp_buf_size)
continue;
/* Read next chunk from the index bitmap. */
bmp_buf_pos = 0;
if ((bmp_pos >> 3) + bmp_buf_size > bmp_na->data_size)
bmp_buf_size = bmp_na->data_size - (bmp_pos >> 3);
br = ntfs_attr_pread(bmp_na, bmp_pos >> 3, bmp_buf_size, bmp);