mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
Don't leak a file descriptor when ejecting a CDROM.
Submitted by: Ronald Klop, trhodes Note to self: don't do commits while half-asleep
This commit is contained in:
parent
bed992dc26
commit
207ec3a836
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198503
|
@ -239,5 +239,6 @@ mediaEjectCDROM(Device *dev)
|
|||
else {
|
||||
ioctl(fd, CDIOCALLOW);
|
||||
ioctl(fd, CDIOCEJECT);
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue