diff options
author | Guo Mengqi <[email protected]> | 2022-07-15 10:33:12 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-07-28 10:33:44 +0200 |
commit | b9f1736e475dba0d6da48fdcb831248ab1597886 (patch) | |
tree | 4d4084eff6b8671ea5a1be52b53fe35b81d8c11a /scripts/gdb/linux/tasks.py | |
parent | af77c56aa35325daa2bc2bed5c2ebf169be61b86 (diff) |
serial: 8250_bcm2835aux: Add missing clk_disable_unprepare()
The error path when get clock frequency fails in bcm2835aux_serial
driver does not correctly disable the clock.
This flaw was found using a static analysis tool "Hulk Robot", which
reported the following warning when analyzing linux-next/master:
drivers/tty/serial/8250/8250_bcm2835aux.c:
warning: clk_disable_unprepare_missing.cocci
The cocci script checks for the existence of clk_disable_unprepare()
paired with clk_prepare_enable().
Add the missing clk_disable_unprepare() to the error path.
Fixes: fcc446c8aa63 ("serial: 8250_bcm2835aux: Add ACPI support")
Reported-by: Hulk Robot <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: Guo Mengqi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions