diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2016-11-14 15:09:26 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-16 19:40:39 +0100 |
commit | c0026c7bfb95c250c3e34fde59f96ad72fd730d6 (patch) | |
tree | a55d45520a39faffd546dc939c35188b12cc10ef /arch/x86/ras | |
parent | [media] s5p-mfc: Use clock gating only on MFC v5 hardware (diff) | |
download | linux-c0026c7bfb95c250c3e34fde59f96ad72fd730d6.tar.xz linux-c0026c7bfb95c250c3e34fde59f96ad72fd730d6.zip |
[media] s5p-mfc: Fix clock management in s5p_mfc_release() function
Clock control indirectly requires access to MFC device, so call it only
if we are sure that the device exists in s5p_mfc_release function.
s5p_mfc_remove() calls s5p_mfc_final_pm(), which releases all PM related
resources, including clocks, so any call to clocks related functions
is not valid after s5p_mfc_final_pm().
Fixes: d695c12 ("[media] media: s5p-mfc fix invalid memory access from
s5p_mfc_release()")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'arch/x86/ras')
0 files changed, 0 insertions, 0 deletions