Always pick up giant before returning from an ioctl call.

This commit is contained in:
sos 2004-08-24 15:09:05 +00:00
parent 26e22a1ea8
commit aa70a744dd

View File

@ -483,8 +483,10 @@ ata_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int32_t flag, struct threa
break;
case ATAREINIT:
if (!device || !(ch = device_get_softc(device)))
return ENXIO;
if (!device || !(ch = device_get_softc(device))) {
error = ENXIO;
break;
}
error = ata_reinit(ch);
ata_start(ch);
break;