Hi, Here is a fix for chipset_enable.c when there is not /dev/cpu. Open fail no there is not reason to lseek in. Actually this is a trivial fix for not well handled return from open.
Signed-off-by: Bertrand Jacquin <[email protected]> Patch is attached -- Beber
Index: chipset_enable.c
===================================================================
--- chipset_enable.c (revision 461)
+++ chipset_enable.c (working copy)
@@ -511,7 +511,7 @@
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;
}
signature.asc
Description: PGP signature
-- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

