Commit c42acc23 authored by Vladimir Serbinenko's avatar Vladimir Serbinenko

xfs: Don't attempt to iterate over empty directory.

Reported by: Tuomas Tynkkynen
parent e75cf4a5
......@@ -828,6 +828,9 @@ grub_xfs_iterate_dir (grub_fshelp_node_t dir,
entries = (grub_be_to_cpu32 (tail->leaf_count)
- grub_be_to_cpu32 (tail->leaf_stale));
if (!entries)
/* Iterate over all entries within this block. */
while ((char *)direntry < (char *)tail)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment