mirror of
https://review.coreboot.org/flashrom.git
synced 2025-05-02 01:13:39 +02:00
Here is a fix for chipset_enable.c when there is not /dev/cpu
Open fails so there is no reason to lseek in. Actually this is a trivial fix for a bad return value from open. Corresponding to flashrom svn r462. Signed-off-by: Bertrand Jacquin <beber@meleeweb.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
e612a11ab7
commit
b452a913d6
@ -511,7 +511,7 @@ static int enable_flash_cs5536(struct pci_dev *dev, const char *name)
|
|||||||
unsigned char buf[8];
|
unsigned char buf[8];
|
||||||
|
|
||||||
fd_msr = open("/dev/cpu/0/msr", O_RDWR);
|
fd_msr = open("/dev/cpu/0/msr", O_RDWR);
|
||||||
if (!fd_msr) {
|
if (fd_msr == -1) {
|
||||||
perror("open msr");
|
perror("open msr");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user