drm: Checking of the pitch is only valid for linear formats
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 27 Jan 2020 10:22:44 +0000 (10:22 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:41 +0000 (16:33 +0100)
commit6e61eab4e73f54e486b510507c47d09cbdb42bd8
treeb7d79ec513d198eb648d313097dbb0e6b6f06cae
parenta94927ff1ca5c293c7cac831cfeca162abff9a6e
drm: Checking of the pitch is only valid for linear formats

framebuffer_check was computing a minimum pitch value and ensuring
that the provided value was greater than this.
That check is only valid if the format is linear.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/drm_framebuffer.c