rusticl: move unmap out of debug_assert_eq statement

Fixes: da4de8d7e3 ("rusticl: add support for coarse-grain buffer SVM")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35286>
This commit is contained in:
Karol Herbst 2025-06-02 18:25:40 +02:00 committed by Marge Bot
parent 931ec3e954
commit 9b28067b59

View file

@ -64,7 +64,8 @@ impl Drop for SVMAlloc {
if let Some(vma) = self.vma {
let address = vma.get() as usize as *mut c_void;
unsafe {
debug_assert_eq!(0, munmap(address, self.size()));
let ret = munmap(address, self.size());
debug_assert_eq!(0, ret);
}
Platform::get()