Parcourir la source

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

greatbridf il y a 2 ans
Parent
commit
1724d02506
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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()
     {