Re: [PATCH v2 next] misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()
From: Manivannan Sadhasivam
Date: Mon Aug 11 2025 - 07:08:29 EST
On Fri, 01 Aug 2025 20:03:35 +0300, Dan Carpenter wrote:
> Commit eefb83790a0d ("misc: pci_endpoint_test: Add doorbell test case")
> added NO_BAR (-1) to the pci_barno enum which, in practical terms,
> changes the enum from an unsigned int to a signed int. If the user
> passes a negative number in pci_endpoint_test_ioctl() then it results in
> an array underflow in pci_endpoint_test_bar().
>
>
> [...]
Applied, thanks!
[1/1] misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()
(no commit info)
Best regards,
--
Manivannan Sadhasivam <mani@xxxxxxxxxx>