[Bug 266113] kvm_close tries to munmap NULL memory
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 266113] kvm_close tries to munmap NULL memory"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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.