added more syscall's commits

This commit is contained in:
Wenlong Zhang 2020-08-11 10:57:24 +08:00
parent f21fd32bde
commit 902ffd1e3e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ impl Syscall<'_> {
proc.get_object::<Resource>(resource)?
.validate(ResourceKind::ROOT)?;
if desc_size > IOMMU_MAX_DESC_LEN {
3 return Err(ZxError::INVALID_ARGS);
return Err(ZxError::INVALID_ARGS);
}
if desc_size != IOMMU_DESC_SIZE {
return Err(ZxError::INVALID_ARGS);