diff options
author | nsayer <nsayer@FreeBSD.org> | 2000-02-01 16:20:24 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2000-02-01 16:20:24 +0000 |
commit | 7b51605016e06daf016b48f9e1f3da654ee3bda2 (patch) | |
tree | 6e8c5d6a3a4644ffde82532e728f8d0e32a06e9c /sys/i386 | |
parent | 9742b65930b8abd4b6bb0418e50cbca5331b631d (diff) | |
download | FreeBSD-src-7b51605016e06daf016b48f9e1f3da654ee3bda2.zip FreeBSD-src-7b51605016e06daf016b48f9e1f3da654ee3bda2.tar.gz |
Avoid passing an uninitialized structure member to the real
READSUBCHANNEL ioctl. This makes vmware work with SCSI CDROM
drives.
Approved by: jkh
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/linux/linux_ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c index bc23d69..a4747c6 100644 --- a/sys/i386/linux/linux_ioctl.c +++ b/sys/i386/linux/linux_ioctl.c @@ -890,6 +890,7 @@ linux_ioctl_cdrom(struct proc *p, struct linux_ioctl_args *args) sizeof(struct cd_sub_channel_info)); bsdsc.address_format = CD_LBA_FORMAT; bsdsc.data_format = CD_CURRENT_POSITION; + bsdsc.track = 0; bsdsc.data_len = sizeof(struct cd_sub_channel_info); bsdsc.data = bsdinfo; error = fo_ioctl(fp, CDIOCREADSUBCHANNEL, (caddr_t)&bsdsc, p); |