diff options
| author | Michael Brown | 2021-03-03 03:24:32 +0100 |
|---|---|---|
| committer | Michael Brown | 2021-03-03 03:26:42 +0100 |
| commit | 65bd5c05db2a050a4c0f26ccc0b1e9828b00abbf (patch) | |
| tree | 8b304e947b9960418ea95007de99ff157931f22b /src/interface/linux/linux_api.c | |
| parent | [linux] Validate length of ACPI table read from sysfs (diff) | |
| download | ipxe-65bd5c05db2a050a4c0f26ccc0b1e9828b00abbf.tar.gz ipxe-65bd5c05db2a050a4c0f26ccc0b1e9828b00abbf.tar.xz ipxe-65bd5c05db2a050a4c0f26ccc0b1e9828b00abbf.zip | |
[linux] Do not assume that stat() works on sysfs files
Linux kernel 3.12 and earlier report a zero size via stat() for all
ACPI table files in sysfs. There is no way to determine the file size
other than by reading the file until EOF.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/linux/linux_api.c')
0 files changed, 0 insertions, 0 deletions
