[flashrom] [commit] r930 - trunk
repository service
svn at flashrom.org
Fri Mar 12 00:04:16 CET 2010
Author: mkarcher
Date: Fri Mar 12 00:04:16 2010
New Revision: 930
URL: http://flashrom.org/trac/coreboot/changeset/930
Log:
Fix NULL pointer reference in board_flash_enable.
Was introduced in r926. Found by Henrik Kretzschmar <henne at nachtwindheim.de>.
Signed-off-by: Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>
Acked-by: Maciej Pijanka <maciej.pijanka at gmail.com>
Modified:
trunk/board_enable.c
Modified: trunk/board_enable.c
==============================================================================
--- trunk/board_enable.c Tue Mar 9 17:57:06 2010 (r929)
+++ trunk/board_enable.c Fri Mar 12 00:04:16 2010 (r930)
@@ -1445,7 +1445,7 @@
if (!board)
board = board_match_pci_card_ids();
- if (board->status == NT) {
+ if (board && board->status == NT) {
if (!force_boardenable)
{
printf("WARNING: Your mainboard is %s %s, but the mainboard-specific\n"
More information about the flashrom
mailing list