* grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-03 09:09:30 +02:00
parent bb9a34e88d
commit f25cecbdb3
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
Fix reiserfs big seek times.

View file

@ -3113,7 +3113,10 @@ nvlist_find_value (const char *nvlist_in, const char *name,
nelm = grub_be_to_cpu32 (grub_get_unaligned32 (nvpair));
if (nelm < 1)
return grub_error (GRUB_ERR_BAD_FS, "empty nvpair");
{
grub_error (GRUB_ERR_BAD_FS, "empty nvpair");
return 0;
}
nvpair += 4;