summaryrefslogtreecommitdiffstats
path: root/sys/scsi/cd.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-02-02 20:43:11 +0000
committerache <ache@FreeBSD.org>1996-02-02 20:43:11 +0000
commit00cb60f46f288b4edfeb50f3788f706c061739bc (patch)
tree47e73cbfffadddb5a89b6f1fba5e1125e0ebc7d6 /sys/scsi/cd.c
parentde77025d55c9d312751d5b252044ce87f9901ba5 (diff)
downloadFreeBSD-src-00cb60f46f288b4edfeb50f3788f706c061739bc.zip
FreeBSD-src-00cb60f46f288b4edfeb50f3788f706c061739bc.tar.gz
I forget the fact that cd_read_toc reads toc header in any case
Diffstat (limited to 'sys/scsi/cd.c')
-rw-r--r--sys/scsi/cd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 0555c94..f661a85 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
- * $Id: cd.c,v 1.62 1996/02/01 16:22:58 ache Exp $
+ * $Id: cd.c,v 1.63 1996/02/01 17:35:15 ache Exp $
*/
#include "opt_bounce.h"
@@ -818,8 +818,8 @@ cd_ioctl(dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p,
error = cd_read_toc(unit, te->address_format,
readtrack,
- data.entries,
- readlen);
+ (struct cd_toc_entry *)&data,
+ readlen + sizeof (*th));
if (error)
break;
OpenPOWER on IntegriCloud