Avoid passing an uninitialized structure member to the real

READSUBCHANNEL ioctl. This makes vmware work with SCSI CDROM
drives.

Approved by:	jkh
This commit is contained in:
Nick Sayer 2000-02-01 16:20:24 +00:00
parent e3be4d7b7e
commit 651e921455
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);