aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/aer/aer_inject.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pcie/aer/aer_inject.c')
-rw-r--r--drivers/pci/pcie/aer/aer_inject.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c
index 587e7e853107..182224acedbe 100644
--- a/drivers/pci/pcie/aer/aer_inject.c
+++ b/drivers/pci/pcie/aer/aer_inject.c
@@ -397,16 +397,14 @@ static int aer_inject(struct aer_error_inj *einj)
397 if (!aer_mask_override && einj->cor_status && 397 if (!aer_mask_override && einj->cor_status &&
398 !(einj->cor_status & ~cor_mask)) { 398 !(einj->cor_status & ~cor_mask)) {
399 ret = -EINVAL; 399 ret = -EINVAL;
400 printk(KERN_WARNING "The correctable error(s) is masked " 400 printk(KERN_WARNING "The correctable error(s) is masked by device\n");
401 "by device\n");
402 spin_unlock_irqrestore(&inject_lock, flags); 401 spin_unlock_irqrestore(&inject_lock, flags);
403 goto out_put; 402 goto out_put;
404 } 403 }
405 if (!aer_mask_override && einj->uncor_status && 404 if (!aer_mask_override && einj->uncor_status &&
406 !(einj->uncor_status & ~uncor_mask)) { 405 !(einj->uncor_status & ~uncor_mask)) {
407 ret = -EINVAL; 406 ret = -EINVAL;
408 printk(KERN_WARNING "The uncorrectable error(s) is masked " 407 printk(KERN_WARNING "The uncorrectable error(s) is masked by device\n");
409 "by device\n");
410 spin_unlock_irqrestore(&inject_lock, flags); 408 spin_unlock_irqrestore(&inject_lock, flags);
411 goto out_put; 409 goto out_put;
412 } 410 }
@@ -464,8 +462,7 @@ static int aer_inject(struct aer_error_inj *einj)
464 goto out_put; 462 goto out_put;
465 } 463 }
466 aer_irq(-1, edev); 464 aer_irq(-1, edev);
467 } 465 } else
468 else
469 ret = -EINVAL; 466 ret = -EINVAL;
470out_put: 467out_put:
471 kfree(err_alloc); 468 kfree(err_alloc);