Commit ac4b2811 authored by MyungJoo Ham's avatar MyungJoo Ham

PM / devfreq: fix duplicated kfree on devfreq pointer

device_unregister() calls kfree already.
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent 3e1d7fb0
......@@ -603,7 +603,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
err_init:
list_del(&devfreq->node);
device_unregister(&devfreq->dev);
kfree(devfreq);
err_out:
return ERR_PTR(err);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment