[PATCH 34/48] staging: etnaviv: remove cmd buffer offset validation in submit_reloc()
Lucas Stach
l.stach at pengutronix.de
Fri Sep 25 04:57:46 PDT 2015
From: Russell King <rmk+kernel at arm.linux.org.uk>
We've already validated the command buffer offset, there's no need to
repeat it elsewhere.
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
---
drivers/staging/etnaviv/etnaviv_gem_submit.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/staging/etnaviv/etnaviv_gem_submit.c b/drivers/staging/etnaviv/etnaviv_gem_submit.c
index f94b6e8fb4fb..a0bc61946036 100644
--- a/drivers/staging/etnaviv/etnaviv_gem_submit.c
+++ b/drivers/staging/etnaviv/etnaviv_gem_submit.c
@@ -219,11 +219,6 @@ static int submit_reloc(struct etnaviv_gem_submit *submit, struct etnaviv_gem_ob
u32 *ptr = obj->vaddr;
int ret;
- if (offset % 4) {
- DRM_ERROR("non-aligned cmdstream buffer: %u\n", offset);
- return -EINVAL;
- }
-
for (i = 0; i < nr_relocs; i++) {
struct drm_etnaviv_gem_submit_reloc submit_reloc;
struct etnaviv_gem_object *bobj;
--
2.5.1
More information about the dri-devel
mailing list