mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
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>
This commit is contained in:
parent
bd622d1a47
commit
0b9e2a746e
@ -1445,7 +1445,7 @@ int board_flash_enable(const char *vendor, const char *part)
|
|||||||
if (!board)
|
if (!board)
|
||||||
board = board_match_pci_card_ids();
|
board = board_match_pci_card_ids();
|
||||||
|
|
||||||
if (board->status == NT) {
|
if (board && board->status == NT) {
|
||||||
if (!force_boardenable)
|
if (!force_boardenable)
|
||||||
{
|
{
|
||||||
printf("WARNING: Your mainboard is %s %s, but the mainboard-specific\n"
|
printf("WARNING: Your mainboard is %s %s, but the mainboard-specific\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user