]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: most: dim2: check return value of clk_prepare_enable for PLL
authorArtem Lytkin <iprintercanon@gmail.com>
Mon, 16 Feb 2026 20:19:20 +0000 (20:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:01:51 +0000 (15:01 +0100)
commitd1c2574d03cced16a9b363807b41d599285e3e60
tree54f38498ce9ad422e8b2ed2eb22adcfdd119e353
parentd289635eb0f197ad22851e393cebd1e772ebdd89
staging: most: dim2: check return value of clk_prepare_enable for PLL

The return value of clk_prepare_enable() for the PLL clock is not
checked, while the same call for the MLB clock is properly checked
earlier in the function. If clk_prepare_enable() fails, the driver
continues without the PLL clock enabled, leading to undefined
hardware behavior.

Add the missing error check and disable the MLB clock on failure to
keep the cleanup consistent with the rest of the function.

Signed-off-by: Artem Lytkin <iprintercanon@gmail.com>
Link: https://patch.msgid.link/20260216201921.1788-2-iprintercanon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/dim2/dim2.c