diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2012-03-13 06:35:48 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-15 05:52:30 -0400 |
commit | 6bfc56aa89f963becbafbaeb105b6a84e0eb0db7 (patch) | |
tree | 46798969a078d0e14e34ebaa13d2b24d0a53e58d /include/drm | |
parent | 93bbf6dbdadbb47ef5a19aecf45669c01ee8830d (diff) |
drm: Handle drm_object_get() failures
Check drm_mode_object_get() return value everywhere.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index fe7ebc6b8c93..00f4007a6d04 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -815,22 +815,22 @@ struct drm_prop_enum_list { | |||
815 | char *name; | 815 | char *name; |
816 | }; | 816 | }; |
817 | 817 | ||
818 | extern void drm_crtc_init(struct drm_device *dev, | 818 | extern int drm_crtc_init(struct drm_device *dev, |
819 | struct drm_crtc *crtc, | 819 | struct drm_crtc *crtc, |
820 | const struct drm_crtc_funcs *funcs); | 820 | const struct drm_crtc_funcs *funcs); |
821 | extern void drm_crtc_cleanup(struct drm_crtc *crtc); | 821 | extern void drm_crtc_cleanup(struct drm_crtc *crtc); |
822 | 822 | ||
823 | extern void drm_connector_init(struct drm_device *dev, | 823 | extern int drm_connector_init(struct drm_device *dev, |
824 | struct drm_connector *connector, | 824 | struct drm_connector *connector, |
825 | const struct drm_connector_funcs *funcs, | 825 | const struct drm_connector_funcs *funcs, |
826 | int connector_type); | 826 | int connector_type); |
827 | 827 | ||
828 | extern void drm_connector_cleanup(struct drm_connector *connector); | 828 | extern void drm_connector_cleanup(struct drm_connector *connector); |
829 | 829 | ||
830 | extern void drm_encoder_init(struct drm_device *dev, | 830 | extern int drm_encoder_init(struct drm_device *dev, |
831 | struct drm_encoder *encoder, | 831 | struct drm_encoder *encoder, |
832 | const struct drm_encoder_funcs *funcs, | 832 | const struct drm_encoder_funcs *funcs, |
833 | int encoder_type); | 833 | int encoder_type); |
834 | 834 | ||
835 | extern int drm_plane_init(struct drm_device *dev, | 835 | extern int drm_plane_init(struct drm_device *dev, |
836 | struct drm_plane *plane, | 836 | struct drm_plane *plane, |