drm/omapdrm: Improve check for contiguous buffers
authorAndrew Davis <afd@ti.com>
Mon, 13 Nov 2023 20:55:01 +0000 (14:55 -0600)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fri, 1 Dec 2023 10:04:28 +0000 (12:04 +0200)
commitf8cc37c59731c88c8c2c62222482dddf071a0600
tree65d49f97b1e027926f03f93492e3278e7a334437
parent3d1ff9dfdc168722f570144aba0ce29d28d7f483
drm/omapdrm: Improve check for contiguous buffers

While a scatter-gather table having only 1 entry does imply it is
contiguous, it is a logic error to assume the inverse. Tables can have
more than 1 entry and still be contiguous. Use a proper check here.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231113205501.616927-1-afd@ti.com
drivers/gpu/drm/omapdrm/omap_gem.c