Date: Wed, 12 Oct 2022 16:31:50 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266113] kvm_close tries to munmap NULL memory Message-ID: <bug-266113-227-okYidtoGSM@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-266113-227@https.bugs.freebsd.org/bugzilla/> References: <bug-266113-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266113 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 =3D=3D NULL instead of check= ing pt_sparse_size !=3D 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 aga= in. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266113-227-okYidtoGSM>