소스 검색

fix(mm_list): set children mm's owner on moving

greatbridf 2 년 전
부모
커밋
1724d02506
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      include/kernel/mm.hpp

+ 2 - 0
include/kernel/mm.hpp

@@ -179,6 +179,8 @@ public:
         , m_pd(v.m_pd)
     {
         v.m_pd = 0;
+        for (auto& area : m_areas)
+            area.owner = this;
     }
     ~mm_list()
     {