diff options
author | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-03-11 23:04:16 +0000 |
---|---|---|
committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-03-11 23:04:16 +0000 |
commit | 0b9e2a746efa97f3d973c848525a0969dd64dc8d (patch) | |
tree | 23add41200da96d5207da9b5228254e3c8450cab | |
parent | bd622d1a47078c06c9c05731b3b93585f7d95d63 (diff) | |
download | flashrom-0b9e2a746efa97f3d973c848525a0969dd64dc8d.tar.gz flashrom-0b9e2a746efa97f3d973c848525a0969dd64dc8d.tar.bz2 flashrom-0b9e2a746efa97f3d973c848525a0969dd64dc8d.zip |
Fix NULL pointer reference in board_flash_enable
Was introduced in r926. Found by Henrik Kretzschmar <henne@nachtwindheim.de>.
Corresponding to flashrom svn r930.
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Maciej Pijanka <maciej.pijanka@gmail.com>
-rw-r--r-- | board_enable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board_enable.c b/board_enable.c index aa463bc4..0e89137d 100644 --- a/board_enable.c +++ b/board_enable.c @@ -1445,7 +1445,7 @@ int board_flash_enable(const char *vendor, const char *part) 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" |