fileobj, shmobj: free pages in object destructor (as opposed to page_unmap())

Change-Id: I3ea50fc13ae5c090ba32aad4461f9741a4c35665
This commit is contained in:
Masamichi Takagi
2018-12-14 17:37:07 +09:00
committed by Dominique Martinet
parent 022e04b62b
commit c1270cdf6d
3 changed files with 3 additions and 1 deletions

View File

@ -395,6 +395,7 @@ static void fileobj_free(struct memobj *memobj)
phys, __func__, phys, PAGE_SIZE, PAGE_SIZE);
rusage_memory_stat_mapped_file_sub(PAGE_SIZE,
PAGE_SIZE);
kfree(page);
}
}