PM / devfreq: fix duplicated kfree on devfreq pointer
device_unregister() calls kfree already. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
This commit is contained in:
parent
3e1d7fb0d2
commit
ac4b281176
|
@ -603,7 +603,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
|
||||||
err_init:
|
err_init:
|
||||||
list_del(&devfreq->node);
|
list_del(&devfreq->node);
|
||||||
device_unregister(&devfreq->dev);
|
device_unregister(&devfreq->dev);
|
||||||
kfree(devfreq);
|
|
||||||
err_out:
|
err_out:
|
||||||
return ERR_PTR(err);
|
return ERR_PTR(err);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue