Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50ce9121 authored by Hanumant Singh's avatar Hanumant Singh
Browse files

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: default avatarHanumant Singh <hanumant@codeaurora.org>
parent a93872da
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -564,7 +564,6 @@ int devfreq_remove_device(struct devfreq *devfreq)
		return -EINVAL;

	device_unregister(&devfreq->dev);
	put_device(&devfreq->dev);

	return 0;
}