1. 02 3月, 2017 1 次提交
  2. 18 2月, 2017 1 次提交
    • P
      PCI/MSI: Fix msi_desc->affinity memory leak when freeing MSI IRQs · 81efbadd
      Prarit Bhargava 提交于
      During device setup, msix_setup_entries() and msi_setup_entry() allocate
      msi_desc by calling alloc_msi_entry().  alloc_msi_entry() can also allocate
      a affinity cpumask.  During device teardown free_msi_irqs() is called and
      the msi_desc is freed, but the affinity cpumask is leaked.
      
      Fix it by calling free_msi_entry() which frees both the msi_desc and the
      affinity cpumask.
      
      [bhelgaas: aa48b6f7 ("genirq/MSI: Move alloc_msi_entry() from PCI into
       generic MSI code") moved alloc_msi_entry() from drivers/pci/msi.c to
       kernel/irq/msi.c and added a new corresponding free_msi_entry() interface.
      
       After aa48b6f7, pci/msi.c used alloc_msi_entry(), but did its own
       kfree() instead of using free_msi_entry().  28f4b041 ("genirq/msi: Add
       cpumask allocation to alloc_msi_entry") added affinity to both
       alloc_msi_entry() and free_msi_entry(), but pci/msi.c didn't use
       free_msi_entry(), resulting in this leak.]
      
      Fixes: aa48b6f7 ("genirq/MSI: Move alloc_msi_entry() from PCI into generic MSI code")
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      CC: Myron Stowe <mstowe@redhat.com>
      81efbadd
  3. 11 2月, 2017 5 次提交
  4. 03 2月, 2017 1 次提交
  5. 14 1月, 2017 1 次提交
  6. 12 1月, 2017 1 次提交
  7. 09 11月, 2016 5 次提交
  8. 26 10月, 2016 1 次提交
  9. 15 9月, 2016 3 次提交
  10. 13 9月, 2016 1 次提交
  11. 18 8月, 2016 1 次提交
  12. 17 8月, 2016 1 次提交
    • C
      PCI: Use positive flags in pci_alloc_irq_vectors() · 4fe0d154
      Christoph Hellwig 提交于
      Instead of passing negative flags like PCI_IRQ_NOMSI to prevent use of
      certain interrupt types, pass positive flags like PCI_IRQ_LEGACY,
      PCI_IRQ_MSI, etc., to specify the acceptable interrupt types.
      
      This is based on a number of pending driver conversions that just happend
      to be a whole more obvious to read this way, and given that we have no
      users in the tree yet it can still easily be done.
      
      I've also added a PCI_IRQ_ALL_TYPES catchall to keep the case of accepting
      all interrupt types very simple.
      
      [bhelgaas: changelog, fix PCI_IRQ_AFFINITY doc typo, remove mention of
      PCI_IRQ_NOLEGACY]
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: NAlexander Gordeev <agordeev@redhat.com>
      4fe0d154
  13. 09 8月, 2016 1 次提交
  14. 22 7月, 2016 5 次提交
  15. 20 12月, 2015 1 次提交
  16. 05 12月, 2015 1 次提交
  17. 01 12月, 2015 1 次提交
  18. 16 10月, 2015 4 次提交
  19. 14 10月, 2015 1 次提交
  20. 19 9月, 2015 1 次提交
  21. 21 8月, 2015 1 次提交
  22. 31 7月, 2015 1 次提交
  23. 30 7月, 2015 1 次提交