drm/panfrost: Add sanity checks to submit IOCTL
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 24 Apr 2019 13:13:53 +0000 (15:13 +0200)
committerRob Herring <robh@kernel.org>
Fri, 3 May 2019 20:34:10 +0000 (15:34 -0500)
commit6ff408e6dc2072adc3e27d7687dfba19edb05d60
tree629d44889f4bed11de3f5f0be1d98e3341ae7eb6
parentae677a67108726214873c02806f02ec7b470a7cf
drm/panfrost: Add sanity checks to submit IOCTL

So userspace can get feedback on any error conditions, instead of going
ahead and things breaking later.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190424131355.62817-1-tomeu.vizoso@collabora.com
drivers/gpu/drm/panfrost/panfrost_drv.c