drm/msm: validate flags, etc
authorRob Clark <robdclark@gmail.com>
Mon, 3 Mar 2014 14:42:33 +0000 (09:42 -0500)
committerRob Clark <robdclark@gmail.com>
Mon, 31 Mar 2014 14:27:46 +0000 (10:27 -0400)
commit93ddb0d3b022dfbd963f243bd01741643cebfb28
treec8493b496943e3f6329847229a75a1d1a82db293
parent060530f1ea6740eb767085008d183f89ccdd289c
drm/msm: validate flags, etc

After reading a nice article on LWN[1], I went back and double checked
my handling of invalid-input checking.  Turns out there were a couple
places I had missed.

Since the driver is fairly young, and the devices it supports are really
only just barely usable for basic stuff (serial console) with an
upstream kernel, I think we should fix this now and revert specific
parts of this patch later in the unlikely event that a regression is
reported.

[1] https://lwn.net/Articles/588444/

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_gem_submit.c
include/uapi/drm/msm_drm.h