fileobj, shmobj: free pages in object destructor (as opposed to page_unmap())
Change-Id: I3ea50fc13ae5c090ba32aad4461f9741a4c35665
This commit is contained in:
committed by
Dominique Martinet
parent
022e04b62b
commit
c1270cdf6d
@@ -277,6 +277,7 @@ static void shmobj_destroy(struct shmobj *obj)
|
||||
1UL << obj->pgshift);
|
||||
memory_stat_rss_sub(1UL << obj->pgshift,
|
||||
1UL << obj->pgshift);
|
||||
kfree(page);
|
||||
}
|
||||
#if 0
|
||||
dkprintf("shmobj_destroy(%p):"
|
||||
|
||||
Reference in New Issue
Block a user