From a646a366bbd84cc14c16ec7d850136345a71f031 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 3 Feb 2012 11:50:18 +0100 Subject: [PATCH] * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error number. --- ChangeLog | 5 +++++ grub-core/fs/reiserfs.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a002348bb..88776f225 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-03 Vladimir Serbinenko + + * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error + number. + 2012-02-03 Vladimir Serbinenko * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message. diff --git a/grub-core/fs/reiserfs.c b/grub-core/fs/reiserfs.c index 82541210d..d6c691794 100644 --- a/grub-core/fs/reiserfs.c +++ b/grub-core/fs/reiserfs.c @@ -479,19 +479,19 @@ grub_reiserfs_get_item (struct grub_reiserfs_data *data, if (! data) { - grub_error (GRUB_ERR_TEST_FAILURE, "data is NULL"); + grub_error (GRUB_ERR_BAD_FS, "data is NULL"); goto fail; } if (! key) { - grub_error (GRUB_ERR_TEST_FAILURE, "key is NULL"); + grub_error (GRUB_ERR_BAD_FS, "key is NULL"); goto fail; } if (! item) { - grub_error (GRUB_ERR_TEST_FAILURE, "item is NULL"); + grub_error (GRUB_ERR_BAD_FS, "item is NULL"); goto fail; } @@ -520,7 +520,7 @@ grub_reiserfs_get_item (struct grub_reiserfs_data *data, if (current_level >= previous_level) { grub_dprintf ("reiserfs_tree", "level loop detected, aborting\n"); - grub_error (GRUB_ERR_FILE_READ_ERROR, "level loop"); + grub_error (GRUB_ERR_BAD_FS, "level loop"); goto fail; } previous_level = current_level;