public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] i915: correctly handling failed allocation
@ 2015-12-29 19:01 Insu Yun
  2015-12-29 19:07 ` kbuild test robot
  2015-12-30  9:16 ` Jani Nikula
  0 siblings, 2 replies; 4+ messages in thread
From: Insu Yun @ 2015-12-29 19:01 UTC (permalink / raw)
  To: daniel.vetter, jani.nikula, airlied, intel-gfx, dri-devel,
	linux-kernel
  Cc: taesoo, yeongjin.jang, insu, changwoo, Insu Yun

Signed-off-by: Insu Yun <wuninsu@gmail.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;
 
 	vbt_panel->intel_dsi = intel_dsi;
 	drm_panel_init(&vbt_panel->panel);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] i915: correctly handling failed allocation
  2015-12-29 19:01 [PATCH] i915: correctly handling failed allocation Insu Yun
@ 2015-12-29 19:07 ` kbuild test robot
  2015-12-30  9:16 ` Jani Nikula
  1 sibling, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2015-12-29 19:07 UTC (permalink / raw)
  Cc: yeongjin.jang, taesoo, Insu Yun, intel-gfx, linux-kernel,
	dri-devel, changwoo, kbuild-all, daniel.vetter, insu

[-- Attachment #1: Type: text/plain, Size: 1620 bytes --]

Hi Insu,

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.4-rc7 next-20151223]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Insu-Yun/i915-correctly-handling-failed-allocation/20151230-030043
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x008-12291635 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/intel_dsi_panel_vbt.c: In function 'vbt_panel_init':
>> drivers/gpu/drm/i915/intel_dsi_panel_vbt.c:669:7: error: 'vbt_pannel' undeclared (first use in this function)
     if (!vbt_pannel)
          ^
   drivers/gpu/drm/i915/intel_dsi_panel_vbt.c:669:7: note: each undeclared identifier is reported only once for each function it appears in

vim +/vbt_pannel +669 drivers/gpu/drm/i915/intel_dsi_panel_vbt.c

   663		intel_dsi->panel_on_delay = pps->panel_on_delay / 10;
   664		intel_dsi->panel_off_delay = pps->panel_off_delay / 10;
   665		intel_dsi->panel_pwr_cycle_delay = pps->panel_power_cycle_delay / 10;
   666	
   667		/* This is cheating a bit with the cleanup. */
   668		vbt_panel = devm_kzalloc(dev->dev, sizeof(*vbt_panel), GFP_KERNEL);
 > 669		if (!vbt_pannel)
   670			return NULL;
   671	
   672		vbt_panel->intel_dsi = intel_dsi;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 32839 bytes --]

[-- Attachment #3: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] i915: correctly handling failed allocation
  2015-12-29 19:01 [PATCH] i915: correctly handling failed allocation Insu Yun
  2015-12-29 19:07 ` kbuild test robot
@ 2015-12-30  9:16 ` Jani Nikula
  2015-12-30 15:56   ` Insu Yun
  1 sibling, 1 reply; 4+ messages in thread
From: Jani Nikula @ 2015-12-30  9:16 UTC (permalink / raw)
  To: daniel.vetter, airlied, intel-gfx, dri-devel, linux-kernel
  Cc: yeongjin.jang, taesoo, insu, Insu Yun, changwoo

On Tue, 29 Dec 2015, Insu Yun <wuninsu@gmail.com> wrote:
> Signed-off-by: Insu Yun <wuninsu@gmail.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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] i915: correctly handling failed allocation
  2015-12-30  9:16 ` Jani Nikula
@ 2015-12-30 15:56   ` Insu Yun
  0 siblings, 0 replies; 4+ messages in thread
From: Insu Yun @ 2015-12-30 15:56 UTC (permalink / raw)
  To: Jani Nikula
  Cc: Yeongjin Jang, Taesoo Kim, intel-gfx, LKML, dri-devel,
	Changwoo Min, daniel.vetter, Yun, Insu


[-- Attachment #1.1: Type: text/plain, Size: 1202 bytes --]

On Wed, Dec 30, 2015 at 4:16 AM, Jani Nikula <jani.nikula@linux.intel.com>
wrote:

> On Tue, 29 Dec 2015, Insu Yun <wuninsu@gmail.com> wrote:
> > Signed-off-by: Insu Yun <wuninsu@gmail.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;
>

Oh sorry. There was a type.


>
> We have build bots and CI, but the least you must do is build the code
> you change before submitting patches.
>

Yes. Sorry.


>
> BR,
> Jani.
>
>
> >
> >       vbt_panel->intel_dsi = intel_dsi;
> >       drm_panel_init(&vbt_panel->panel);
>
> --
> Jani Nikula, Intel Open Source Technology Center
>



-- 
Regards
Insu Yun

[-- Attachment #1.2: Type: text/html, Size: 2232 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-30 15:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-29 19:01 [PATCH] i915: correctly handling failed allocation Insu Yun
2015-12-29 19:07 ` kbuild test robot
2015-12-30  9:16 ` Jani Nikula
2015-12-30 15:56   ` Insu Yun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox