Commit 0b9e2a74 authored by Michael Karcher's avatar Michael Karcher
Browse files

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: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: default avatarMaciej Pijanka <maciej.pijanka@gmail.com>
parent bd622d1a
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment