You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[libata] Fix oops introduced in non-uniform port handling fix
Noticed by several people. Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
@@ -484,7 +484,7 @@ static void nv_error_handler(struct ata_port *ap)
|
||||
static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
{
|
||||
static int printed_version = 0;
|
||||
struct ata_port_info *ppi;
|
||||
struct ata_port_info *ppi[2];
|
||||
struct ata_probe_ent *probe_ent;
|
||||
int pci_dev_busy = 0;
|
||||
int rc;
|
||||
@@ -520,8 +520,8 @@ static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
|
||||
rc = -ENOMEM;
|
||||
|
||||
ppi = &nv_port_info[ent->driver_data];
|
||||
probe_ent = ata_pci_init_native_mode(pdev, &ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
|
||||
ppi[0] = ppi[1] = &nv_port_info[ent->driver_data];
|
||||
probe_ent = ata_pci_init_native_mode(pdev, ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
|
||||
if (!probe_ent)
|
||||
goto err_out_regions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user