From f25cecbdb3a7ab8b291d32719339f895829e9437 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Thu, 3 May 2012 09:09:30 +0200 Subject: [PATCH] * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value. --- ChangeLog | 4 ++++ grub-core/fs/zfs/zfs.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f1ac4cdfd..86f667f50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-05-03 Vladimir Serbinenko + + * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value. + 2012-05-02 Vladimir Serbinenko Fix reiserfs big seek times. diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c index a3486ef9b..ba0554abd 100644 --- a/grub-core/fs/zfs/zfs.c +++ b/grub-core/fs/zfs/zfs.c @@ -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;