staging: drm/imx: add i.MX IPUv3 base driver
Dan Carpenter
dan.carpenter at oracle.com
Fri Nov 8 10:02:32 UTC 2013
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
More information about the devel
mailing list