forked from Bananymous/banan-os
Kernel: Fix ext2 directory listing for big directories
This commit is contained in:
parent
639fd8804c
commit
181d139c7d
|
@ -306,8 +306,7 @@ done:
|
||||||
ASSERT(mode().ifdir());
|
ASSERT(mode().ifdir());
|
||||||
ASSERT(offset >= 0);
|
ASSERT(offset >= 0);
|
||||||
|
|
||||||
const uint32_t data_block_count = blocks();
|
if (offset >= max_used_data_block_count())
|
||||||
if (offset >= data_block_count)
|
|
||||||
{
|
{
|
||||||
list->entry_count = 0;
|
list->entry_count = 0;
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Reference in New Issue