Repository navigation
Commit 01e5b2c
be2net: Fix crash on 2nd invocation of PCI AER/EEH error_detected hook
During a PCI EEH/AER error recovery flow, if the device did not successfully
restart, the error_detected() hook may be called a second time with a
"perm_failure" state. This patch skips over driver cleanup for the second
invocation of the callback.
Also, Lancer error recovery code is fixed-up to handle these changes.
Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Somnath kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent e38b170 commit 01e5b2c
2 files changed
Lines changed: 26 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
| 593 | + | |
| 594 | + | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4098 | 4098 | | |
4099 | 4099 | | |
4100 | 4100 | | |
| 4101 | + | |
4101 | 4102 | | |
4102 | 4103 | | |
4103 | 4104 | | |
| |||
4109 | 4110 | | |
4110 | 4111 | | |
4111 | 4112 | | |
4112 | | - | |
4113 | | - | |
| 4113 | + | |
4114 | 4114 | | |
4115 | 4115 | | |
4116 | 4116 | | |
| |||
4122 | 4122 | | |
4123 | 4123 | | |
4124 | 4124 | | |
4125 | | - | |
4126 | | - | |
| 4125 | + | |
4127 | 4126 | | |
4128 | 4127 | | |
4129 | | - | |
4130 | | - | |
4131 | | - | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
4132 | 4132 | | |
4133 | 4133 | | |
4134 | 4134 | | |
| |||
4137 | 4137 | | |
4138 | 4138 | | |
4139 | 4139 | | |
4140 | | - | |
| 4140 | + | |
4141 | 4141 | | |
4142 | 4142 | | |
4143 | 4143 | | |
4144 | 4144 | | |
4145 | 4145 | | |
4146 | | - | |
4147 | | - | |
4148 | | - | |
4149 | 4146 | | |
4150 | 4147 | | |
4151 | 4148 | | |
4152 | 4149 | | |
4153 | 4150 | | |
4154 | | - | |
4155 | 4151 | | |
4156 | 4152 | | |
4157 | 4153 | | |
4158 | 4154 | | |
4159 | | - | |
4160 | | - | |
4161 | | - | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
4162 | 4161 | | |
4163 | 4162 | | |
4164 | 4163 | | |
| |||
4441 | 4440 | | |
4442 | 4441 | | |
4443 | 4442 | | |
4444 | | - | |
4445 | | - | |
4446 | | - | |
| 4443 | + | |
| 4444 | + | |
4447 | 4445 | | |
4448 | | - | |
4449 | | - | |
4450 | | - | |
| 4446 | + | |
4451 | 4447 | | |
4452 | | - | |
4453 | 4448 | | |
4454 | | - | |
| 4449 | + | |
| 4450 | + | |
| 4451 | + | |
4455 | 4452 | | |
| 4453 | + | |
| 4454 | + | |
4456 | 4455 | | |
4457 | | - | |
4458 | 4456 | | |
4459 | 4457 | | |
4460 | 4458 | | |
| |||
4479 | 4477 | | |
4480 | 4478 | | |
4481 | 4479 | | |
4482 | | - | |
4483 | 4480 | | |
4484 | 4481 | | |
4485 | 4482 | | |
| |||
4497 | 4494 | | |
4498 | 4495 | | |
4499 | 4496 | | |
| 4497 | + | |
4500 | 4498 | | |
4501 | 4499 | | |
4502 | 4500 | | |
| |||
0 commit comments