Re: [PATCH v8 7/9] serial: max310x: schedule tx_work directly from the IRQ handler

From: Tapio Reijonen

Date: Wed Oct 14 2026 - 03:10:14 EST


On 10/8/26 13:04, sashiko-bot@xxxxxxxxxx wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [High] tty: max310x: Use-After-Free of workqueues in probe error path and remove
Pre-existing: max310x_remove() has cancelled the works before
unregistering the ports, and the probe error path has lacked the
cancels, since the works were introduced - this patch only moves the
ISR's direct handle_tx() call into the existing tx_work. The series'
teardown interlock narrows the window; reordering remove() and adding
the probe error path cancels is planned as a follow-up series, since
it is unrelated to the RS485 work here.

Tapio