mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-25 13:29:56 +00:00
The lx_emul_virt_to_pages implementation initialized the page ref counter only for the first page, leaving the remaining elements in uninitialized state. This, in turn, rendered the Linux page_pool (as used by the emac network driver) ineffective, ultimately leading the a memory leak. The fix changes the call of 'init_page_count' to take the loop variable as argument. Issue #4225