[PATCH 0/2] serial: pic32_uart: fix two error and remove paths
From: Arina Kharlamova via B4 Relay
Date: Mon Nov 30 2026 - 17:57:39 EST
Two fixes for the PIC32 UART driver. The error path of
pic32_uart_startup() frees the interrupt whose request has just failed,
and pic32_uart_remove() disables a clock that the shutdown of the port
has already disabled.
Found by the spec2patch formal prover, with the help of an AI coding
assistant (Claude); I reviewed the analysis and the fix.
---
Arina Kharlamova (2):
serial: pic32_uart: do not free an IRQ that failed to be requested
serial: pic32_uart: do not disable the clock in remove
drivers/tty/serial/pic32_uart.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
base-commit: 25faec9ce61c01fb45abf812a222c5b43c3cd5c5
change-id: 20261129-s2p-v02-b02bb12ab0b0
Best regards,
--
Arina Kharlamova <arina.kharlamova@xxxxxxxxxxxx>