Messages in this thread | | | Subject | RE: [PATCH v2] PM / devfreq: Stop the governor before device_unregister() | From | MyungJoo Ham <> | Date | Thu, 27 Sep 2018 14:20:36 +0900 |
| |
> From: Vincent Donnefort <vincent.donnefort@arm.com> > > device_release() is freeing the resources before calling the device > specific release callback which is, in the case of devfreq, stopping > the governor. > > It is a problem as some governors are using the device resources. e.g. > simpleondemand which is using the devfreq deferrable monitoring work. If it > is not stopped before the resources are freed, it might lead to a use after > free. > > Signed-off-by: Vincent Donnefort <vincent.donnefort@arm.com> > Reviewed-by: John Einar Reitan <john.reitan@arm.com> > Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Cheers, MyungJoo
| |