<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Diffs attached<br>
    <br>
    <div class="moz-cite-prefix">30.01.2015 17:49, <a class="moz-txt-link-abbreviated" href="mailto:a.urakov@drweb.com">a.urakov@drweb.com</a>
      пишет:<br>
    </div>
    <blockquote cite="mid:54CB99FC.2090805@drweb.com" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Hello!<br>
      <br>
      We would like to contribute to VirtualBox under MIT license. We
      send our changes to fix bug described at <a
        moz-do-not-send="true" class="moz-txt-link-freetext"
        href="https://www.virtualbox.org/ticket/13789">https://www.virtualbox.org/ticket/13789</a>
      .<br>
      <br>
      The idea is that functions <i>Medium::removeRegistry()</i> and <i>Medium::addRegistry()</i>
      themselves take write locks on mediums, so we get read lock only
      for <i>Medium::getAnyMachineBackref()</i> call in <i>VirtualBox::unregisterMachine()</i>
      function. Also we release read lock on medium after we got its
      parent and before we are going to iterate through parents in <i>Machine::detachAllMedia()</i>
      function.<br>
      <br>
      Regards,<br>
      Alexander<br>
      <br>
    </blockquote>
    <br>
  </body>
</html>