linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: video: Add Aeroflex Gaisler GRVGA framebuffer device driver
@ 2013-11-08 10:05 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-11-08 10:05 UTC (permalink / raw)
  To: linux-fbdev

Hello Kristoffer Glembo,

This is a semi-automatic email about new static checker warnings.

The patch a4b8f97a8fde: "video: Add Aeroflex Gaisler GRVGA 
framebuffer device driver" from Jul 5, 2011, leads to the following 
Smatch complaint:

drivers/video/grvga.c:519 grvga_remove()
	 warn: variable dereferenced before check 'info' (see line 517)

drivers/video/grvga.c
   516		struct fb_info *info = dev_get_drvdata(&device->dev);
   517		struct grvga_par *par = info->par;
                                        ^^^^^^^^^
Dereference.

   518	
   519		if (info) {
                   ^^^^^^
Check.

   520			unregister_framebuffer(info);
   521			fb_dealloc_cmap(&info->cmap);

regards,
dan carpenter

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-08 10:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 10:05 video: Add Aeroflex Gaisler GRVGA framebuffer device driver Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).