1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-30 00:13:43 +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:
Bertrand Jacquin 2009-05-05 21:08:36 +00:00 committed by Myles Watson
parent e612a11ab7
commit b452a913d6

View File

@ -511,7 +511,7 @@ static int enable_flash_cs5536(struct pci_dev *dev, const char *name)
unsigned char buf[8];
fd_msr = open("/dev/cpu/0/msr", O_RDWR);
if (!fd_msr) {
if (fd_msr == -1) {
perror("open msr");
return -1;
}