[Bug 266113] kvm_close tries to munmap NULL memory

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 12 Oct 2022 16:31:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266113

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |markj@FreeBSD.org

--- Comment #2 from Mark Johnston <markj@FreeBSD.org> ---
This seems ok to me.  I would check sparse_map == NULL instead of checking
pt_sparse_size != 0.  The reason is that the assignment to pt_sparse_size might
be moved earlier by some future change, and then the code will be wrong again.

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