]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Reject bad property flag combinations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Mar 2018 16:48:49 +0000 (18:48 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 7 Mar 2018 16:28:34 +0000 (18:28 +0200)
commit2d41ead9e85c9cd86da3d0fd6a1c806b414975b3
tree5f2e7670238b68a845688b8f48e65a712ecb94c4
parentacbf5673b9f6487e2ca31db4e2beec0b00af3fc6
drm: Reject bad property flag combinations

Pimp drm_property_type_valid() to check for more fails with the
property flags. Also make the check before adding the property,
and bail out if things look bad.

Since we're now chekcing for more than the type let's also
change the function name to drm_property_flags_valid().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180306164849.2862-6-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_property.c