1
0
Fork 0

imx_drm: ipu_v3: fix invalid free of devm_* allocated data

The objects allocated by devm_* APIs are managed by devres and are freed
when the device is detached. There is no need to use kfree() explicitly.

Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Silviu-Mihai Popescu 2013-03-16 14:02:36 +02:00 committed by Greg Kroah-Hartman
parent 6b83f9150f
commit b4446865bc
1 changed files with 0 additions and 1 deletions

View File

@ -316,7 +316,6 @@ int ipu_dp_init(struct ipu_soc *ipu, struct device *dev, unsigned long base)
priv->base = devm_ioremap(dev, base, PAGE_SIZE);
if (!priv->base) {
kfree(priv);
return -ENOMEM;
}