Re: [PATCH v2 13/14] NTB: ntb_transport: Abort link setup on QP MW allocation failure

From: Logan Gunthorpe

Date: Fri Sep 18 2026 - 14:26:25 EST




On 2026-09-09 22:08, Koichiro Den wrote:
> ntb_transport_setup_qp_mw() can fail while growing a QP's RX entry pool,
> but the link worker ignores that error. The worker can consequently
> publish a QP whose memory-window state is only partly initialized.
>
> Abort on the first QP setup error and release the MWs through the
> existing error path instead of publishing the transport link.
>
> Fixes: a754a8fcaf38 ("NTB: allocate number transport entries depending on size of ring size")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Koichiro Den <den@xxxxxxxxxxxxx>

Makes sense to me

Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>