Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a5e3ff6 authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: iommu-debug: Return an error value on invalid data format



If a user passes an invalid data format to the "unmap" debugfs file,
return a negative value instead of zero.

Change-Id: Ie9a0086901f1445935818583d78e06193f3133b1
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 781558f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1798,7 +1798,7 @@ static ssize_t iommu_debug_unmap_write(struct file *file,


invalid_format:
invalid_format:
	pr_err("Invalid format. Expected: iova,len\n");
	pr_err("Invalid format. Expected: iova,len\n");
	return retval;
	return -EINVAL;
}
}


static const struct file_operations iommu_debug_unmap_fops = {
static const struct file_operations iommu_debug_unmap_fops = {