summaryrefslogtreecommitdiff
path: root/drivers/ata/sata_gemini.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2020-11-13 18:52:02 +0100
committerAlex Williamson <alex.williamson@redhat.com>2020-12-02 13:03:12 -0700
commit16b8fe4caf499ae8e12d2ab1b1324497e36a7b83 (patch)
tree5fc0bc7fedf550da6199caa1cd0467165cabccd1 /drivers/ata/sata_gemini.c
parentb65054597872ce3aefbc6a666385eabdf9e288da (diff)
downloadlinux-16b8fe4caf499ae8e12d2ab1b1324497e36a7b83.tar.gz
vfio/pci: Move dummy_resources_list init in vfio_pci_probe()
In case an error occurs in vfio_pci_enable() before the call to vfio_pci_probe_mmaps(), vfio_pci_disable() will try to iterate on an uninitialized list and cause a kernel panic. Lets move to the initialization to vfio_pci_probe() to fix the issue. Signed-off-by: Eric Auger <eric.auger@redhat.com> Fixes: 05f0c03fbac1 ("vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive") CC: Stable <stable@vger.kernel.org> # v4.7+ Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/ata/sata_gemini.c')
0 files changed, 0 insertions, 0 deletions