> From: Vincent Donnefort <vincent.donnef...@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.donnef...@arm.com> > Reviewed-by: John Einar Reitan <john.rei...@arm.com> > Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com>
Acked-by: MyungJoo Ham <myungjoo....@samsung.com> Cheers, MyungJoo