Always pick up giant before returning from an ioctl call.

This commit is contained in:
Søren Schmidt 2004-08-24 15:09:05 +00:00
parent d4e02af583
commit 741d64783e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134248

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;