re: staging: drm/imx: add i.MX IPUv3 base driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Sascha Hauer,

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

The patch aecfbdb1803b: "staging: drm/imx: add i.MX IPUv3 base 
driver" from Sep 21, 2012, leads to the following Smatch complaint:

drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c:164 ipu_dmfc_setup_channel()
	 warn: variable dereferenced before check 'dmfc' (see line 157)

drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c
   156	{
   157		struct ipu_dmfc_priv *priv = dmfc->priv;
                                             ^^^^^^^^^^
Dereference.

   158		u32 val, field;
   159	
   160		dev_dbg(priv->dev,
   161				"dmfc: using %d slots starting from segment %d for IPU channel %d\n",
   162				slots, segment, dmfc->data->ipu_channel);
   163	
   164		if (!dmfc)
                    ^^^^^
Check.

   165			return -EINVAL;
   166	

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux