summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/exynos/exynos_drm_vidi.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2016-06-17 10:54:23 +0300
committerInki Dae <daeinki@gmail.com>2016-07-13 17:06:04 +0300
commitf7c72773de88fa3d4b51d4eb2bd2a89b746aaf54 (patch)
tree05a40dbdf33237547e0d2703027533a65fc12ca7 /drivers/gpu/drm/exynos/exynos_drm_vidi.c
parent5dd0775e502b26b44e5bcb5f504a977a565f2f3e (diff)
downloadlinux-f7c72773de88fa3d4b51d4eb2bd2a89b746aaf54.tar.xz
drm/exynos: iommu: move dma_params configuration code to separate functions
Move code for managing DMA max segment size parameter to separate functions. This patch also replaces devm_kzalloc() with kzalloc() and adds proper kfree call. devm_kzalloc() cannot be used for dma_params structure, because it will be freed on driver remove not on device release. This means in case of Exynos DRM being compiled as module and loaded 2 times, a user-after-free issue will happen. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_vidi.c')
0 files changed, 0 insertions, 0 deletions