]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: rk3399_dmc: Avoid static (reused) profile
authorBrian Norris <briannorris@chromium.org>
Tue, 8 Mar 2022 19:09:01 +0000 (11:09 -0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Apr 2022 22:18:12 +0000 (07:18 +0900)
commit0b4e2e434cdf6b029d72997beb3e1d430615b3d3
tree195c7991814ffde85e4826aab599769f1e40649c
parent7a83b4326605cbbad7c131f3f6cfaa7568ed97ee
PM / devfreq: rk3399_dmc: Avoid static (reused) profile

This static struct can get reused if the device gets removed/reprobed,
and that causes use-after-free in its ->freq_table.

Let's just move the struct to our dynamic allocation.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/rk3399_dmc.c