Re: [Intel-gfx] [PATCH 6/6] drm: Reject bad property flag combinations

2018-03-07 Thread Ville Syrjälä
On Tue, Mar 06, 2018 at 07:22:51PM +0100, Daniel Vetter wrote: > On Tue, Mar 06, 2018 at 06:48:49PM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Pimp drm_property_type_valid() to check for more fails with the > > property flags. Also make the check before adding the property, > > a

Re: [Intel-gfx] [PATCH 6/6] drm: Reject bad property flag combinations

2018-03-06 Thread Daniel Vetter
On Tue, Mar 06, 2018 at 06:48:49PM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > 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

[Intel-gfx] [PATCH 6/6] drm: Reject bad property flag combinations

2018-03-06 Thread Ville Syrjala
From: Ville Syrjälä 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().