Re: [v2] misc: pci_endpoint_test: Fix return resource_size_t from pci_resource_len

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 20, 2024 at 03:52:53PM +0800, Hans Zhang wrote:
> With 8GB BAR2, running pcitest -b 2 fails with "TEST FAILED".
> 
> The return value of the `pci_resource_len` interface is not an integer.
> Using `pcitest` with an 8GB BAR2, the bar_size of integer type will
> overflow.
> Changing the integer to resource_size_t bar_size resolves this issue.
> 
> Signed-off-by: Hans Zhang <18255117159@xxxxxxx>
> 
> Changes since v1:
> https://lore.kernel.org/linux-pci/20241217121220.19676-1-18255117159@xxxxxxx/
> 
> - The patch subject and commit message were modified.
> ---

The "changes" part goes below the --- line, as the documentation shows.

Please fix up.

thanks,

greg k-h




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux