mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
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:
|
||||
list_del(&devfreq->node);
|
||||
device_unregister(&devfreq->dev);
|
||||
kfree(devfreq);
|
||||
err_out:
|
||||
return ERR_PTR(err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user