Skip to content

Commit

Permalink
Merge tag 'ntb-4.1' of git://github.com/jonmason/ntb
Browse files Browse the repository at this point in the history
Pull NTB fixes from Jon Mason:
 "I apologize for the tardiness of this request.  Here are a couple of
  last minute NTB bug fixes for v4.1:

  NTB bug fixes to address issues in unmapping the MW reg base and
  vbase, and an uninitialized variable on Atom platforms"

* tag 'ntb-4.1' of git://github.com/jonmason/ntb:
  ntb: initialize max_mw for Atom before using it
  ntb: iounmap MW reg and vbase in error path
  • Loading branch information
Linus Torvalds committed Jun 15, 2015
2 parents 1f1e34f + ebaad13 commit dc75117
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/ntb/ntb_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,7 @@ static int ntb_atom_detect(struct ntb_device *ndev)
u32 ppd;

ndev->hw_type = BWD_HW;
ndev->limits.max_mw = BWD_MAX_MW;

rc = pci_read_config_dword(ndev->pdev, NTB_PPD_OFFSET, &ppd);
if (rc)
Expand Down Expand Up @@ -1778,7 +1779,7 @@ static int ntb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
dev_warn(&pdev->dev, "Cannot remap BAR %d\n",
MW_TO_BAR(i));
rc = -EIO;
goto err3;
goto err4;
}
}

Expand Down

0 comments on commit dc75117

Please sign in to comment.