[PATCH 16/19] drm: more elaborate check for resource count

2012-04-12 Thread Ilija Hadzic
User space can send us all kinds of nonsense for num_crtc, num_encoder, num_connector, or num_plane. So far, we have been checking only for presence of at least one CRTC/encoder/connector (barring the trivial case of a render node with no display resources, i.e., GPGPU node). This patch makes the

[PATCH 16/19] drm: more elaborate check for resource count

2012-04-12 Thread Ilija Hadzic
User space can send us all kinds of nonsense for num_crtc, num_encoder, num_connector, or num_plane. So far, we have been checking only for presence of at least one CRTC/encoder/connector (barring the trivial case of a render node with no display resources, i.e., GPGPU node). This patch makes the