Re: [PATCH 4/4] PCI: Prevent overflow in proc_bus_pci_read()
From: Krzysztof Wilczyński
Date: Sun May 03 2026 - 18:38:22 EST
Hello,
> diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c
> index a5db7d23353a..f11f48becf52 100644
> --- a/drivers/pci/proc.c
> +++ b/drivers/pci/proc.c
> @@ -29,7 +29,7 @@ static ssize_t proc_bus_pci_read(struct file *file, char __user *buf,
> size_t nbytes, loff_t *ppos)
> {
> struct pci_dev *dev = pde_data(file_inode(file));
> - unsigned int off = *ppos;
> + loff_t off = *ppos;
> unsigned int count = nbytes;
> unsigned int size;
You could merge this patch with the previews one. This will close the gap
on the signed/unsigned promotion issue that Sashiko is complaining about.
Thank you!
Krzysztof