Improved the fix.
This commit is contained in:
@@ -2651,8 +2651,7 @@ ide_board_close(int board)
|
|||||||
|
|
||||||
if (dev->type == IDE_ATAPI)
|
if (dev->type == IDE_ATAPI)
|
||||||
dev->tf->atastat = DRDY_STAT | DSC_STAT;
|
dev->tf->atastat = DRDY_STAT | DSC_STAT;
|
||||||
|
else if (!(dev->type & IDE_SHADOW) && (dev->tf != NULL)) {
|
||||||
if ((dev->type == IDE_HDD) && (dev->tf != NULL)) {
|
|
||||||
free(dev->tf);
|
free(dev->tf);
|
||||||
dev->tf = NULL;
|
dev->tf = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user