Re: [PATCH] staging: axis-fifo: fix tx_fifo_depth underflow in write
From: Dan Carpenter
Date: Wed Oct 21 2026 - 02:00:51 EST
On Wed, Oct 21, 2026 at 11:29:08AM +0800, LiuJunyuan wrote:
> Check fifo->tx_fifo_depth before subtracting four words to avoid an
> unsigned underflow when the device tree provides an invalid depth.
>
> Signed-off-by: LiuJunyuan <2058432396@xxxxxx>
AI loves to make this change, but actually we trust device tree
information.
regards,
dan carpenter