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:
parent
e3be4d7b7e
commit
651e921455
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user