Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iommufd-ioctls/src/iommufd_ioctls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub(crate) mod iommufd_syscall {
// 2. The 'unmap' points to initialized memory with expected data structure,
// and remains valid for the duration of syscall.
// 3. The return value is checked.
let ret = unsafe { ioctl_with_ref(iommufd, IOMMU_IOAS_UNMAP(), unmap) };
let ret = unsafe { ioctl_with_mut_ref(iommufd, IOMMU_IOAS_UNMAP(), unmap) };
if ret < 0 {
Err(IommufdError::IommuIoasUnmap(SysError::last()))
} else {
Expand Down
Loading