mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] PCI: switchtec: Trivial cleanups
@ 2023-01-04 20:22 Bjorn Helgaas
  2023-01-04 20:22 ` [PATCH v3 1/2] PCI: switchtec: Simplify switchtec_dma_mrpc_isr() Bjorn Helgaas
  2023-01-04 20:22 ` [PATCH v3 2/2] PCI: switchtec: Return -EFAULT for copy_to_user() errors Bjorn Helgaas
  0 siblings, 2 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2023-01-04 20:22 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Kurt Schwemmer, Logan Gunthorpe
  Cc: linux-pci, linux-kernel, Bjorn Helgaas

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 | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

Changes between v2 and v3:
- Remove unused label "out".
Changes between v1 and v2:
- Return -EFAULT for copy_to_user() errors.
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-04 20:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04 20:22 [PATCH v3 0/2] PCI: switchtec: Trivial cleanups Bjorn Helgaas
2023-01-04 20:22 ` [PATCH v3 1/2] PCI: switchtec: Simplify switchtec_dma_mrpc_isr() Bjorn Helgaas
2023-01-04 20:22 ` [PATCH v3 2/2] PCI: switchtec: Return -EFAULT for copy_to_user() errors Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®