Repository navigation
Commit a06876a
ide: pci: free PCI BARs on initialization failure
Recent pci_assign_irq() changes uncovered a problem with missing freeing of
PCI BARs on PCI IDE host initialization failure:
ide0: disabled, no IRQ
ide0: failed to initialize IDE interface
ide0: disabling port
cmd64x 0000:00:02.0: IDE controller (0x1095:0x0646 rev 0x07)
CMD64x_IDE 0000:00:02.0: BAR 0: can't reserve [io 0x8050-0x8057]
cmd64x 0000:00:02.0: can't reserve resources
CMD64x_IDE: probe of 0000:00:02.0 failed with error -16
Fix the problem by adding missing freeing of PCI BARs to
ide_setup_pci_controller() and ide_pci_init_two().
Fixes: 30fdfb9 ("PCI: Add a call to pci_assign_irq() in pci_device_probe()")
Fixes: 0e4c2ee ("alpha/PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping hooks")
Link: http://lkml.kernel.org/r/32ec730f-c1b0-5584-cd35-f8a809122b96@roeck-us.net
Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
[bhelgaas: add Fixes:]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>1 parent d410a64 commit a06876a
1 file changed
Lines changed: 40 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
192 | | - | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | | - | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 221 | | |
232 | 222 | | |
233 | 223 | | |
| |||
403 | 393 | | |
404 | 394 | | |
405 | 395 | | |
| 396 | + | |
406 | 397 | | |
407 | 398 | | |
408 | 399 | | |
| |||
411 | 402 | | |
412 | 403 | | |
413 | 404 | | |
414 | | - | |
| 405 | + | |
415 | 406 | | |
416 | 407 | | |
417 | 408 | | |
| |||
420 | 411 | | |
421 | 412 | | |
422 | 413 | | |
423 | | - | |
| 414 | + | |
424 | 415 | | |
425 | 416 | | |
426 | 417 | | |
427 | 418 | | |
428 | 419 | | |
429 | 420 | | |
430 | 421 | | |
431 | | - | |
| 422 | + | |
432 | 423 | | |
433 | 424 | | |
434 | 425 | | |
435 | 426 | | |
436 | | - | |
| 427 | + | |
437 | 428 | | |
438 | 429 | | |
439 | 430 | | |
440 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
441 | 436 | | |
442 | 437 | | |
443 | 438 | | |
| |||
540 | 535 | | |
541 | 536 | | |
542 | 537 | | |
543 | | - | |
| 538 | + | |
544 | 539 | | |
545 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
546 | 553 | | |
547 | | - | |
548 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
549 | 558 | | |
| 559 | + | |
550 | 560 | | |
551 | 561 | | |
552 | 562 | | |
553 | 563 | | |
554 | 564 | | |
555 | 565 | | |
556 | 566 | | |
557 | | - | |
| 567 | + | |
558 | 568 | | |
559 | 569 | | |
560 | 570 | | |
| |||
576 | 586 | | |
577 | 587 | | |
578 | 588 | | |
579 | | - | |
| 589 | + | |
580 | 590 | | |
581 | 591 | | |
582 | 592 | | |
| |||
589 | 599 | | |
590 | 600 | | |
591 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
592 | 609 | | |
593 | 610 | | |
594 | 611 | | |
| |||
0 commit comments