serial: 8250_dw: Disable clock on error
authorStefan Potyra <Stefan.Potyra@elektrobit.com>
Wed, 6 Dec 2017 15:46:12 +0000 (16:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2017 19:27:43 +0000 (20:27 +0100)
commit8af016aa5a27c6a2505460eb4d83f1e70c38dc43
tree08479e60e95980ad1d5d8d715edbaf595fc07ff1
parent0858fe3c9c8bf0e4a73da7b2759950ee75ed8995
serial: 8250_dw: Disable clock on error

If there is no clock rate for uartclk defined, disable the previously
enabled clock again.

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: 23f5b3fdd04e serial: 8250_dw: only get the clock rate in one place
Signed-off-by: Stefan Potyra <Stefan.Potyra@elektrobit.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c