[Bug 219994] VirtualBox crashes 11.1-BETA1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 14 23:00:59 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219994

--- Comment #4 from Jung-uk Kim <jkim at FreeBSD.org> ---
(In reply to Sergey A. Osokin from comment #3)
1767                        boundary))                                          
1768                            goto retry;                                     
1769    #endif                                                                  
1770            }
1771            for (m = m_ret; m < &m_ret[npages]; m++)                        
1772                    if ((m->flags & PG_ZERO) != 0)                          
1773                            vm_page_zero_count--;                           
1774            mtx_unlock(&vm_page_queue_free_mtx);                            
1775            if (m_ret == NULL)                                              
1776                    return (NULL);

This panics because `m' is NULL in #1772.  It seems the for loop should be
moved up a bit.

FYI, the code was committed in r318716:

https://svnweb.freebsd.org/changeset/base/318716

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-emulation mailing list