Re: [PATCH] drm: omapdrm: Improve check for contiguous buffers

2022-08-25 Thread Andrew Davis
On 8/22/22 7:03 PM, Andrew Davis wrote: 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 --- Looks like an o

[PATCH] drm: omapdrm: Improve check for contiguous buffers

2022-08-22 Thread Andrew Davis
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 --- drivers/gpu/drm/omapdrm/omap_gem.c | 14 ++ 1 f