[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87k2nwe1pc.fsf@intel.com>
Date: Wed, 30 Dec 2015 11:16:15 +0200
From: Jani Nikula <jani.nikula@...ux.intel.com>
To: Insu Yun <wuninsu@...il.com>, daniel.vetter@...el.com,
airlied@...ux.ie, intel-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Cc: taesoo@...ech.edu, yeongjin.jang@...ech.edu, insu@...ech.edu,
changwoo@...ech.edu, Insu Yun <wuninsu@...il.com>
Subject: Re: [PATCH] i915: correctly handling failed allocation
On Tue, 29 Dec 2015, Insu Yun <wuninsu@...il.com> wrote:
> Signed-off-by: Insu Yun <wuninsu@...il.com>
> ---
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists