Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178889
b: refs/heads/master
c: 46256f8
h: refs/heads/master
i:
  178887: 3d443df
v: v3
  • Loading branch information
Youquan,Song authored and Jesse Barnes committed Jan 4, 2010
1 parent 16d4aa5 commit 6f26fb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 40da4186a53e59d801130156ecb89fc5830ff227
refs/heads/master: 46256f83d0d066f99ffde547f27473dfd2a78009
8 changes: 7 additions & 1 deletion trunk/drivers/pci/pcie/aer/aer_inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,14 @@ static int aer_inject(struct aer_error_inj *einj)
if (ret)
goto out_put;

if (find_aer_device(rpdev, &edev))
if (find_aer_device(rpdev, &edev)) {
if (!get_service_data(edev)) {
printk(KERN_WARNING "AER service is not initialized\n");
ret = -EINVAL;
goto out_put;
}
aer_irq(-1, edev);
}
else
ret = -EINVAL;
out_put:
Expand Down

0 comments on commit 6f26fb4

Please sign in to comment.