From 8d8d0cb09eb8735a04fc36cc4d0e2dc9f9d460eb Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 21 Mar 2014 11:08:26 -0700 Subject: [PATCH] clover: Fix typo in validate_object() Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/api/transfer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/clover/api/transfer.cpp b/src/gallium/state_trackers/clover/api/transfer.cpp index e41b7f24f82..404ceb028b4 100644 --- a/src/gallium/state_trackers/clover/api/transfer.cpp +++ b/src/gallium/state_trackers/clover/api/transfer.cpp @@ -86,7 +86,7 @@ namespace { throw error(CL_INVALID_VALUE); // ...and within the specified object. - if (dot(pitch, origin) + size(pitch, origin) > mem.size()) + if (dot(pitch, origin) + size(pitch, region) > mem.size()) throw error(CL_INVALID_VALUE); if (any_of(is_zero(), region)) -- 2.30.2