PM / devfreq: exynos-bus: Fix NULL pointer dereference
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 1 Jul 2022 13:31:26 +0000 (15:31 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 7 Jul 2022 19:32:26 +0000 (04:32 +0900)
commitc8934e4e348915caac54085c01fd9d04fa16134a
treef1da4c041b8626504863a8542550600a21f74853
parent88084a3df1672e131ddc1b4e39eeacfd39864acf
PM / devfreq: exynos-bus: Fix NULL pointer dereference

Fix exynos-bus NULL pointer dereference by correctly using the local
generated freq_table to output the debug values instead of using the
profile freq_table that is not used in the driver.

Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Fixes: b5d281f6c16d ("PM / devfreq: Rework freq_table to be local to devfreq struct")
Cc: stable@vger.kernel.org
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/exynos-bus.c