Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174765
b: refs/heads/master
c: 1d02435
h: refs/heads/master
i:
  174763: 96ee37b
v: v3
  • Loading branch information
Andrew Patterson authored and Jesse Barnes committed Nov 4, 2009
1 parent d242218 commit 8726ddb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc5d153a0ca794e3781ef34c76f32ad3e991b13d
refs/heads/master: 1d0243559497b9cab00099c49a5ba3222cd6576f
8 changes: 4 additions & 4 deletions trunk/drivers/pci/pcie/aer/aer_inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,23 +326,23 @@ static int aer_inject(struct aer_error_inj *einj)

dev = pci_get_domain_bus_and_slot((int)einj->domain, einj->bus, devfn);
if (!dev)
return -EINVAL;
return -ENODEV;
rpdev = pcie_find_root_port(dev);
if (!rpdev) {
ret = -EINVAL;
ret = -ENOTTY;
goto out_put;
}

pos_cap_err = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR);
if (!pos_cap_err) {
ret = -EIO;
ret = -ENOTTY;
goto out_put;
}
pci_read_config_dword(dev, pos_cap_err + PCI_ERR_UNCOR_SEVER, &sever);

rp_pos_cap_err = pci_find_ext_capability(rpdev, PCI_EXT_CAP_ID_ERR);
if (!rp_pos_cap_err) {
ret = -EIO;
ret = -ENOTTY;
goto out_put;
}

Expand Down

0 comments on commit 8726ddb

Please sign in to comment.