PM/devfreq: Remove redundant put_device()
When unregistering devfreq device (devfreq_remove_device()), there is an additional call to put_device, after device_unregister().This causes data aborts in case of access to a kobj in put_device(), that was already freed by preceding device_unregister() CRs-Fixed: 841819 Change-Id: I98bd9e4cc9ecfbc48a0bfe72fc47e362a6697741 Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
This commit is contained in:
parent
45f7fa7337
commit
20e745281c
1 changed files with 0 additions and 1 deletions
|
@ -561,7 +561,6 @@ int devfreq_remove_device(struct devfreq *devfreq)
|
|||
return -EINVAL;
|
||||
|
||||
device_unregister(&devfreq->dev);
|
||||
put_device(&devfreq->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue