[PATCH 0/2] serial: owl, uartlite: undo clock setup on probe failure

From: Arina Kharlamova via B4 Relay

Date: Tue Dec 01 2026 - 14:19:02 EST


Two serial drivers leave the port clock enabled when probe fails
after enabling it. uartlite also leaves runtime PM enabled.

I found these with spec2patch. I model-checked the probe and remove
paths of each driver with CBMC against formal specifications of the
kernel APIs they call. The specifications are checked against the kernel
source, and some of them are proved in Rocq against a transcription of
the kernel code. I also checked lock usage separately. With the help of
an AI coding assistant (Claude); I reviewed the analysis and the fix.
Compile-tested only, not tested on hardware.

---
Arina Kharlamova (2):
serial: owl: Disable the clock when uart_add_one_port() fails
serial: uartlite: Undo clock and runtime PM setup on probe failure

drivers/tty/serial/owl-uart.c | 4 +++-
drivers/tty/serial/uartlite.c | 7 +++++++
2 files changed, 10 insertions(+), 1 deletion(-)
---
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
change-id: 20261201-s2p-tty1-ee20b0ff657a

Best regards,
--
Arina Kharlamova <arina.kharlamova@xxxxxxxxxxxx>