Re: [PATCH] PCI: endpoint: pci-epf-vntb: Use array_index_nospec() on mws_size[] access

From: Manivannan Sadhasivam

Date: Tue Feb 24 2026 - 05:35:53 EST



On Mon, 05 Jan 2026 16:56:06 +0900, Koichiro Den wrote:
> Follow common kernel idioms for indices derived from configfs attributes
> and suppress Smatch warnings:
>
> epf_ntb_mw1_show() warn: potential spectre issue 'ntb->mws_size' [r]
> epf_ntb_mw1_store() warn: potential spectre issue 'ntb->mws_size' [w]
>
> Also fix the error message for out-of-range MW indices and %lld format
> for unsigned values.
>
> [...]

Applied, thanks!

[1/1] PCI: endpoint: pci-epf-vntb: Use array_index_nospec() on mws_size[] access
commit: 26cd5ca272a44031c4ff381928aa1b816829d18d

Best regards,
--
Manivannan Sadhasivam <mani@xxxxxxxxxx>