[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9a8437bb-73d3-4b63-af6a-b2704b7034db@163.com>
Date: Sat, 4 Jan 2025 22:25:24 +0800
From: Hans Zhang <18255117159@....com>
To: Bjorn Helgaas <helgaas@...nel.org>
Cc: manivannan.sadhasivam@...aro.org, kw@...ux.com, kishon@...nel.org,
arnd@...db.de, gregkh@...uxfoundation.org, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, rockswang7@...il.com,
kernel test robot <lkp@...el.com>, Niklas Cassel <cassel@...nel.org>
Subject: Re: [v5] misc: pci_endpoint_test: Fix overflow of bar_size
On 2025/1/4 06:02, Bjorn Helgaas wrote:
>> 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.
>> Change the data type of bar_size from integer to resource_size_t, to fix
>> the above issue.
>
> Add blank lines between paragraphs.
>
> Looks good to me.
>
Thank you Bjorn.
Regards
Hans
Powered by blists - more mailing lists