[PATCH] drm: WARN() when drm_connector_attach_property fails

Paulo Zanoni przanoni at gmail.com
Tue May 15 14:09:00 PDT 2012


From: Paulo Zanoni <paulo.r.zanoni at intel.com>

Also return void instead of int. We have more than 100 callers and
no one checks for the return value.

If this function fails the property won't be exposed by the get/set
ioctls, but we should probably survive. If this starts happening,
the solution will be to increase DRM_CONNECTOR_MAX_PROPERTY and
recompile the Kernel.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 drivers/gpu/drm/drm_crtc.c |   10 +++++-----
 include/drm/drm_crtc.h     |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)



More information about the dri-devel mailing list