drm: mediatek: use common helper for a scatterlist contiguity check
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 8 May 2020 06:25:52 +0000 (08:25 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 10 Sep 2020 06:18:35 +0000 (08:18 +0200)
commit960db7fcbd67abbea52ab08baa8290fbd027fe3c
tree281beb3f721215131596da8ade63aad16ae3d39b
parentc3d9c17f486d5c54940487dc31a54ebfdeeb371a
drm: mediatek: use common helper for a scatterlist contiguity check

Use common helper for checking the contiguity of the imported dma-buf and
do this check before allocating resources, so the error path is simpler.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_gem.c