Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Oops. Fix a typo in cd_mode_select().



details:   https://anonhg.NetBSD.org/src/rev/3651b7ee0821
branches:  trunk
changeset: 551614:3651b7ee0821
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Mon Sep 08 23:44:29 2003 +0000

description:
Oops.  Fix a typo in cd_mode_select().

diffstat:

 sys/dev/scsipi/cd.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 2a50dd04d79e -r 3651b7ee0821 sys/dev/scsipi/cd.c
--- a/sys/dev/scsipi/cd.c       Mon Sep 08 23:43:35 2003 +0000
+++ b/sys/dev/scsipi/cd.c       Mon Sep 08 23:44:29 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd.c,v 1.192 2003/09/08 18:51:34 mycroft Exp $ */
+/*     $NetBSD: cd.c,v 1.193 2003/09/08 23:44:29 mycroft Exp $ */
 
 /*-
  * Copyright (c) 1998, 2001, 2003 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.192 2003/09/08 18:51:34 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.193 2003/09/08 23:44:29 mycroft Exp $");
 
 #include "rnd.h"
 
@@ -2242,7 +2242,7 @@
 
                header->data_length = 0;
                return scsipi_mode_select(cd->sc_periph, byte2, sense,
-                   size + sizeof(struct scsipi_mode_header_big),
+                   size + sizeof(struct scsipi_mode_header),
                    flags | XS_CTL_DATA_ONSTACK, CDRETRIES, 20000);
        }
 }
@@ -2454,6 +2454,6 @@
                
        _lto3b(2048, bdesc->blklen);
 
-       return (cd_mode_select(cd, SMS_PF, &data,
-           sizeof(struct scsi_blk_desc), 0, big));
+       return (cd_mode_select(cd, SMS_PF, &data, sizeof(data.blk_desc), 0,
+           big));
 }



Home | Main Index | Thread Index | Old Index