Use default error handler when flushing disk caches.

This commit is contained in:
Alexander Motin 2012-06-05 20:39:12 +00:00
parent db852c28f7
commit 7642883f10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236639

View File

@ -490,7 +490,7 @@ adaclose(struct disk *dp)
ata_48bit_cmd(&ccb->ataio, ATA_FLUSHCACHE48, 0, 0, 0);
else
ata_28bit_cmd(&ccb->ataio, ATA_FLUSHCACHE, 0, 0, 0);
cam_periph_runccb(ccb, /*error_routine*/NULL, /*cam_flags*/0,
cam_periph_runccb(ccb, adaerror, /*cam_flags*/0,
/*sense_flags*/0, softc->disk->d_devstat);
if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)