mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
ide: I/O resources are released too early in ide_unregister()
Release I/O resources after releasing DMA. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
537f06c5de
commit
7cba97f129
1 changed files with 7 additions and 7 deletions
|
@ -529,13 +529,6 @@ void ide_unregister(unsigned int index)
|
|||
free_irq(hwif->irq, hwgroup);
|
||||
|
||||
spin_lock_irq(&ide_lock);
|
||||
/*
|
||||
* Note that we only release the standard ports,
|
||||
* and do not even try to handle any extra ports
|
||||
* allocated for weird IDE interface chipsets.
|
||||
*/
|
||||
ide_hwif_release_regions(hwif);
|
||||
|
||||
/*
|
||||
* Remove us from the hwgroup, and free
|
||||
* the hwgroup if we were the only member
|
||||
|
@ -590,6 +583,13 @@ void ide_unregister(unsigned int index)
|
|||
hwif->extra_ports = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Note that we only release the standard ports,
|
||||
* and do not even try to handle any extra ports
|
||||
* allocated for weird IDE interface chipsets.
|
||||
*/
|
||||
ide_hwif_release_regions(hwif);
|
||||
|
||||
/* copy original settings */
|
||||
tmp_hwif = *hwif;
|
||||
|
||||
|
|
Loading…
Reference in a new issue