mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-23 00:33:21 +00:00
Always pick up giant before returning from an ioctl call.
This commit is contained in:
parent
d4e02af583
commit
741d64783e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134248
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue