diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_gem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index e4849413ee80..aeb91ed653c9 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c | |||
| @@ -612,8 +612,7 @@ int omap_gem_dumb_create(struct drm_file *file, struct drm_device *dev, | |||
| 612 | { | 612 | { |
| 613 | union omap_gem_size gsize; | 613 | union omap_gem_size gsize; |
| 614 | 614 | ||
| 615 | /* in case someone tries to feed us a completely bogus stride: */ | 615 | args->pitch = align_pitch(0, args->width, args->bpp); |
| 616 | args->pitch = align_pitch(args->pitch, args->width, args->bpp); | ||
| 617 | args->size = PAGE_ALIGN(args->pitch * args->height); | 616 | args->size = PAGE_ALIGN(args->pitch * args->height); |
| 618 | 617 | ||
| 619 | gsize = (union omap_gem_size){ | 618 | gsize = (union omap_gem_size){ |
