i915: correctly handling failed allocation
authorInsu Yun <wuninsu@gmail.com>
Wed, 30 Dec 2015 15:59:29 +0000 (10:59 -0500)
committerJani Nikula <jani.nikula@intel.com>
Mon, 4 Jan 2016 14:05:27 +0000 (16:05 +0200)
commit62ab420f7458feb4ef1fa2ef094ee00af9844253
tree4c9d2fcd316090963923376b2a2415ab31aa2bbe
parenteba51190f3c6ffcb685fc100a4234095b0146150
i915: correctly handling failed allocation

Since devm_kzalloc can be failed, it needs to be checked
if not, NULL dereference could be happened.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1451491169-35068-1-git-send-email-wuninsu@gmail.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_dsi_panel_vbt.c