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