Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/dev/scsipi Pull up following revision(s) (requested b...
details: https://anonhg.NetBSD.org/src/rev/418290c003c1
branches: netbsd-8
changeset: 451703:418290c003c1
user: martin <martin%NetBSD.org@localhost>
date: Fri May 31 08:10:58 2019 +0000
description:
Pull up following revision(s) (requested by mlelstv in ticket #1278):
sys/dev/scsipi/scsipi_ioctl.c: revision 1.72 (via patch)
use correct size when copying outgoing sense data.
diffstat:
sys/dev/scsipi/scsipi_ioctl.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 16f0fb9ff487 -r 418290c003c1 sys/dev/scsipi/scsipi_ioctl.c
--- a/sys/dev/scsipi/scsipi_ioctl.c Fri May 31 08:08:25 2019 +0000
+++ b/sys/dev/scsipi/scsipi_ioctl.c Fri May 31 08:10:58 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsipi_ioctl.c,v 1.69 2016/11/20 15:37:19 mlelstv Exp $ */
+/* $NetBSD: scsipi_ioctl.c,v 1.69.8.1 2019/05/31 08:10:58 martin Exp $ */
/*-
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsipi_ioctl.c,v 1.69 2016/11/20 15:37:19 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsipi_ioctl.c,v 1.69.8.1 2019/05/31 08:10:58 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_freebsd.h"
@@ -168,14 +168,16 @@
SC_DEBUG(periph, SCSIPI_DB3, ("have sense\n"));
screq->senselen_used = min(sizeof(xs->sense.scsi_sense),
SENSEBUFLEN);
- memcpy(screq->sense, &xs->sense.scsi_sense, screq->senselen);
+ memcpy(screq->sense, &xs->sense.scsi_sense,
+ screq->senselen_used);
screq->retsts = SCCMD_SENSE;
break;
case XS_SHORTSENSE:
SC_DEBUG(periph, SCSIPI_DB3, ("have short sense\n"));
screq->senselen_used = min(sizeof(xs->sense.atapi_sense),
SENSEBUFLEN);
- memcpy(screq->sense, &xs->sense.scsi_sense, screq->senselen);
+ memcpy(screq->sense, &xs->sense.atapi_sense,
+ screq->senselen_used);
screq->retsts = SCCMD_UNKNOWN; /* XXX need a shortsense here */
break;
case XS_DRIVER_STUFFUP:
Home |
Main Index |
Thread Index |
Old Index