mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
ZFS: Don't iterate over null objsets
Reading them is harmless but useless as they are empty by definition Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
96446ce14e
commit
444089eec6
1 file changed
+3
@@ -4157,6 +4157,9 @@ iterate_zap_fs (const char *name, grub_uint64_t val,
|
|||||||
grub_err_t err;
|
grub_err_t err;
|
||||||
struct grub_dirhook_info info;
|
struct grub_dirhook_info info;
|
||||||
|
|
||||||
|
if (name[0] == 0 && val == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
dnode_end_t mdn;
|
dnode_end_t mdn;
|
||||||
err = dnode_get (&(ctx->data->mos), val, 0, &mdn, ctx->data);
|
err = dnode_get (&(ctx->data->mos), val, 0, &mdn, ctx->data);
|
||||||
if (err)
|
if (err)
|
||||||
|
|||||||
Reference in new issue
Block a user