Ticket #112 (closed defect: fixed)
probe_flash calculates base address before final value of size is known
| Reported by: | alaricx@… | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | flashrom | Version: | v2 |
| Keywords: | probe_flash mmap | Cc: | segher@… |
| Dependencies: | Patch Status: | patch has been committed |
Description
Found thanks to segher in #coreboot.
In probe_flash(), flash_baseaddr is set before the getpagesize() > size check, thus can be invalid, causing mmap issues.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
