]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos/ipp: Validate buffer enqueue requests
authorBeata Michalska <b.michalska@samsung.com>
Wed, 4 Mar 2015 14:02:49 +0000 (15:02 +0100)
committerInki Dae <inki.dae@samsung.com>
Mon, 13 Apr 2015 02:39:40 +0000 (11:39 +0900)
commit419602b4c9474459be5f13c9fe203d875807089c
treec3c47e9ad2132264349c145e2e85852d138396f4
parent1001a6e275c09eb2b0e85a1bf0873b3a2740dc60
drm/exynos/ipp: Validate buffer enqueue requests

As for now there is no validation of incoming buffer
enqueue request as far as the gem buffers are being
concerned. This might lead to some undesired cases
when the driver tries to operate on invalid buffers
(wiht no valid gem object handle i.e.).
Add some basic checks to rule out those potential issues.

Signed-off-by: Beata Michalska <b.michalska@samsung.com>
[mszyprow: rebased onto v4.0-rc1 and adapted to recent ipp changes]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_ipp.c