]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: add omap_gem_validate_flags()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 10 Oct 2019 11:59:59 +0000 (13:59 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Oct 2019 14:02:40 +0000 (17:02 +0300)
commitbdbeee805ffd56545a23cb410a1909ccccd0c19c
treec9040160ec6b51648e735174a379e692ab35bc11
parent350192ac55f60d264f5cf63bd7adf135f5ba7d45
drm/omap: add omap_gem_validate_flags()

Add a helper function omap_gem_validate_flags() which validates the
omap_bo flags passed from the userspace.

Also drop the dev_err() message, as the userspace can cause that at
will.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191010120000.1421-8-jjhiblot@ti.com
drivers/gpu/drm/omapdrm/omap_gem.c