drm/dp/mst: Handle errors from drm_atomic_get_private_obj_state() correctly
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 12 Jul 2017 15:51:00 +0000 (18:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Jul 2017 16:28:43 +0000 (19:28 +0300)
commit56a91c4932bd038f3d1f6555ddc349ca4e6933b0
treea3a7a3dc20d369637f1229a1b36fdca337fc0c03
parente27986853a168b31c9801359a7a70a5226b558c3
drm/dp/mst: Handle errors from drm_atomic_get_private_obj_state() correctly

On failure drm_atomic_get_private_obj_state() returns and error
pointer instead of NULL. Adjust the checks in the callers to match.

Cc: stable@vger.kernel.org
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: edb1ed1ab7d3 ("drm/dp: Add DP MST helpers to atomically find and release vcpi slots")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170712155102.26276-1-ville.syrjala@linux.intel.com
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
drivers/gpu/drm/drm_dp_mst_topology.c