From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754442AbbL3JRG (ORCPT ); Wed, 30 Dec 2015 04:17:06 -0500 Received: from mga09.intel.com ([134.134.136.24]:29025 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754375AbbL3JQm (ORCPT ); Wed, 30 Dec 2015 04:16:42 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,500,1444719600"; d="scan'208";a="883374318" From: Jani Nikula To: Insu Yun , daniel.vetter@intel.com, airlied@linux.ie, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: taesoo@gatech.edu, yeongjin.jang@gatech.edu, insu@gatech.edu, changwoo@gatech.edu, Insu Yun Subject: Re: [PATCH] i915: correctly handling failed allocation In-Reply-To: <1451415713-9508-1-git-send-email-wuninsu@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <1451415713-9508-1-git-send-email-wuninsu@gmail.com> User-Agent: Notmuch/0.21+7~g55fb7da (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Wed, 30 Dec 2015 11:16:15 +0200 Message-ID: <87k2nwe1pc.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Dec 2015, Insu Yun wrote: > Signed-off-by: Insu Yun > --- > drivers/gpu/drm/i915/intel_dsi_panel_vbt.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c > index a5e99ac..4e279dd 100644 > --- a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c > +++ b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c > @@ -666,6 +666,8 @@ struct drm_panel *vbt_panel_init(struct intel_dsi *intel_dsi, u16 panel_id) > > /* This is cheating a bit with the cleanup. */ > vbt_panel = devm_kzalloc(dev->dev, sizeof(*vbt_panel), GFP_KERNEL); > + if (!vbt_pannel) > + return NULL; We have build bots and CI, but the least you must do is build the code you change before submitting patches. BR, Jani. > > vbt_panel->intel_dsi = intel_dsi; > drm_panel_init(&vbt_panel->panel); -- Jani Nikula, Intel Open Source Technology Center