mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 06:01:16 +02:00
Fix segfault when running flashrom -L
The raiden_debug programmer is of type USB. However, it does not set the field `devs.dev`, which will result in a segfault when trying to print the devices of the non-existing table. Fix that by replacing `devs.note` with `devs.dev` and adding an empty device table. Since Device IDs are not used to match programmers, nothing could be added to the table. TEST=Running `flashrom -L` no longer segfaults and returns normally. Change-Id: Ie4171a11384c34abb102d1aadf86aa1b8829fc04 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/39826 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:

committed by
Edward O'Callaghan

parent
548c880760
commit
6c8bd91e29
@ -116,6 +116,11 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* FIXME: Add some programmer IDs here */
|
||||
const struct dev_entry devs_raiden[] = {
|
||||
{0},
|
||||
};
|
||||
|
||||
#define GOOGLE_VID (0x18D1)
|
||||
#define GOOGLE_RAIDEN_SPI_SUBCLASS (0x51)
|
||||
#define GOOGLE_RAIDEN_SPI_PROTOCOL (0x01)
|
||||
|
Reference in New Issue
Block a user