diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_cs.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_cs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 41802915f93f..7b294c127c5f 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c | |||
@@ -215,6 +215,9 @@ static inline int r600_cs_track_validate_cb(struct radeon_cs_parser *p, int i) | |||
215 | __func__, __LINE__, pitch); | 215 | __func__, __LINE__, pitch); |
216 | return -EINVAL; | 216 | return -EINVAL; |
217 | } | 217 | } |
218 | /* avoid breaking userspace */ | ||
219 | if (height > 7) | ||
220 | height &= ~0x7; | ||
218 | if (!IS_ALIGNED(height, 8)) { | 221 | if (!IS_ALIGNED(height, 8)) { |
219 | dev_warn(p->dev, "%s:%d cb height (%d) invalid\n", | 222 | dev_warn(p->dev, "%s:%d cb height (%d) invalid\n", |
220 | __func__, __LINE__, height); | 223 | __func__, __LINE__, height); |