Re: [PATCH v2] PCI/proc: check user access return values in proc_bus_pci_{read,write}()
From: Krzysztof Wilczyński
Date: Tue Jul 28 2026 - 19:16:25 EST
Hello,
[...]
> Changes in v2:
> - Use get_user()/put_user() and drop access_ok() (Krzysztof)
> - Rename label to err: per kernel convention (Krzysztof)
> - Simplify error path to release runtime-PM and return -EFAULT (Krzysztof)
> - Apply the same fix to proc_bus_pci_read() (Krzysztof)
Looks good, and with changes to the commit log per Bjorn:
Reviewed-by: Krzysztof Wilczyński <kwilczynski@xxxxxxxxxx>
Thank you!
Krzysztof