drm/i915: check for return value
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 8 Oct 2015 13:58:00 +0000 (19:28 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Dec 2015 13:32:22 +0000 (14:32 +0100)
commit893da0c9bcb26acf1ac277f29231bb2a3b0aa95c
tree4fd72ad7489c195ff48515b99931bf3f212f524e
parent506a8e87d8d2746b9e9d2433503fe237c54e4750
drm/i915: check for return value

We were not checking the return value of drm_encoder_init() which can
fail. And if it fails then we will be working with an uninitialized
encoder.

Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1444312681-10149-2-git-send-email-sudipm.mukherjee@gmail.com
drivers/gpu/drm/i915/intel_dp.c