mbox series

[v2,0/2] PCI: switchtec: Trivial cleanups

Message ID 20221216162126.207863-1-helgaas@kernel.org
Headers show
Series PCI: switchtec: Trivial cleanups | expand

Message

Bjorn Helgaas Dec. 16, 2022, 4:21 p.m. UTC
From: Bjorn Helgaas <bhelgaas@google.com>

Simplify switchtec_dma_mrpc_isr() slightly and return the right
copy_to_user() error code from switchtec_dev_read().

Bjorn Helgaas (2):
  PCI: switchtec: Simplify switchtec_dma_mrpc_isr()
  PCI: switchtec: Return -EFAULT for copy_to_user() errors

 drivers/pci/switch/switchtec.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Changes between v1 and v2:
- Return -EFAULT for copy_to_user() errors.

Comments

Lorenzo Pieralisi Dec. 30, 2022, 11:22 a.m. UTC | #1
On Fri, 16 Dec 2022 10:21:24 -0600, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
> 
> Simplify switchtec_dma_mrpc_isr() slightly and return the right
> copy_to_user() error code from switchtec_dev_read().
> 
> Bjorn Helgaas (2):
>   PCI: switchtec: Simplify switchtec_dma_mrpc_isr()
>   PCI: switchtec: Return -EFAULT for copy_to_user() errors
> 
> [...]

Applied to pci/switchtec, thanks!

[1/2] PCI: switchtec: Simplify switchtec_dma_mrpc_isr()
      https://git.kernel.org/lpieralisi/pci/c/1a810b9bb681
[2/2] PCI: switchtec: Return -EFAULT for copy_to_user() errors
      https://git.kernel.org/lpieralisi/pci/c/fbc855bce49e

Thanks,
Lorenzo