]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d8b0be3e624e33dcce4510928803d7182932e09
tree4fd72ad7489c195ff48515b99931bf3f212f524e
parentd3319242ee04afad684d84418c6ee20c3eadf6aa
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