* grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
This commit is contained in:
parent
bb9a34e88d
commit
f25cecbdb3
2 changed files with 8 additions and 1 deletions
|
@ -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>
|
2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Fix reiserfs big seek times.
|
Fix reiserfs big seek times.
|
||||||
|
|
|
@ -3113,7 +3113,10 @@ nvlist_find_value (const char *nvlist_in, const char *name,
|
||||||
|
|
||||||
nelm = grub_be_to_cpu32 (grub_get_unaligned32 (nvpair));
|
nelm = grub_be_to_cpu32 (grub_get_unaligned32 (nvpair));
|
||||||
if (nelm < 1)
|
if (nelm < 1)
|
||||||
return grub_error (GRUB_ERR_BAD_FS, "empty nvpair");
|
{
|
||||||
|
grub_error (GRUB_ERR_BAD_FS, "empty nvpair");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
nvpair += 4;
|
nvpair += 4;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue