konradr / rpms / grub2

Forked from rpms/grub2 6 years ago
Clone
5206323
From 80528f8d6ff44a0e2cd043cd0ba11e06aac8aea2 Mon Sep 17 00:00:00 2001
5206323
From: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
5206323
Date: Wed, 12 Jun 2013 23:25:30 -0500
5206323
Subject: [PATCH 483/483] Initialize grub_file_filters_{all,enabled}
5206323
5206323
Without this we see an error on ppc during startup:
5206323
5206323
Elapsed time since release of system processors: 220520 mins 17 secs
5206323
DEFAULT CATCH!, exception-handler=fff00300
5206323
at   %SRR0: 0000000000010d1c   %SRR1: 0000000000003002
5206323
Open Firmware exception handler entered from non-OF code
5206323
 
5206323
Client's Fix Pt Regs:
5206323
00 000000000000b3a4 0000000001a3ff00 0000000000000000 000000000021ac50
5206323
04 000000000021a810 0000000000001240 00000000002195c0 000000000021ab30
5206323
08 000000000002195e 0000000065313237 0000000000000000 0000000001a3ff50
5206323
0c 0000000000000124 0000000000000000 0000000000000000 0000000000000000
5206323
10 0000000000000000 0000000000000000 0000000000000000 0000000000000000
5206323
14 0000000000c00000 0000000000000008 0000000000000000 0000000000000000
5206323
18 0000000000000000 0000000000000000 000000000021ab40 000000000020f8be
5206323
1c 000000000021aa40 000000000021ac50 0000000000000000 000000000021ac50
5206323
5206323
Special Regs:
5206323
%IV: 00000300     %CR: 40000044    %XER: 00000000  %DSISR: 40000000
5206323
%SRR0: 0000000000010d1c   %SRR1: 0000000000003002
5206323
%LR: 000000000000b3a4    %CTR: 000000000000b378
5206323
%DAR: 000000006531323f
5206323
Virtual PID = 0
5206323
ofdbg
5206323
0 > 
5206323
5206323
This doesn't appear to be the root cause of the problem; these should be
5206323
initalized by calls to grub_file_filter_register() called from various
5206323
GRUB_MOD_INIT() functions.  Nevertheless, right now it fixes the symptom.
5206323
5206323
---
5206323
 grub-core/kern/file.c | 4 ++--
5206323
 1 file changed, 2 insertions(+), 2 deletions(-)
5206323
5206323
diff --git a/grub-core/kern/file.c b/grub-core/kern/file.c
5206323
index 6426668..f10d958 100644
5206323
--- a/grub-core/kern/file.c
5206323
+++ b/grub-core/kern/file.c
5206323
@@ -28,8 +28,8 @@
5206323
 
5206323
 void (*EXPORT_VAR (grub_grubnet_fini)) (void);
5206323
 
5206323
-grub_file_filter_t grub_file_filters_all[GRUB_FILE_FILTER_MAX];
5206323
-grub_file_filter_t grub_file_filters_enabled[GRUB_FILE_FILTER_MAX];
5206323
+grub_file_filter_t grub_file_filters_all[GRUB_FILE_FILTER_MAX] = {NULL, NULL, NULL, NULL};
5206323
+grub_file_filter_t grub_file_filters_enabled[GRUB_FILE_FILTER_MAX] = {NULL, NULL, NULL, NULL};
5206323
 
5206323
 /* Get the device part of the filename NAME. It is enclosed by parentheses.  */
5206323
 char *
5206323
-- 
5206323
1.8.2.1
5206323