From dded554099bcc388270b290279ab222f5b8780b5 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sun, 12 Feb 2012 19:16:49 +0100 Subject: [PATCH] * grub-core/term/terminfo.c (grub_terminfo_output_unregister): Mark calling with invalid term as GRUB_ERR_BUG. --- ChangeLog | 5 +++++ grub-core/term/terminfo.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e927a455c..8563c418f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-12 Vladimir Serbinenko + + * grub-core/term/terminfo.c (grub_terminfo_output_unregister): + Mark calling with invalid term as GRUB_ERR_BUG. + 2012-02-12 Vladimir Serbinenko * grub-core/net/tftp.c (tftp_receive): Silently discard too short diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c index 5fb2d6dea..cee146fba 100644 --- a/grub-core/term/terminfo.c +++ b/grub-core/term/terminfo.c @@ -205,7 +205,7 @@ grub_terminfo_output_unregister (struct grub_term_output *term) *ptr = ((struct grub_terminfo_output_state *) (*ptr)->data)->next; return GRUB_ERR_NONE; } - return grub_error (GRUB_ERR_BAD_ARGUMENT, "terminal not found"); + return grub_error (GRUB_ERR_BUG, "terminal not found"); } /* Wrapper for grub_putchar to write strings. */