Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Initialize tfd even when not waiting for DSC.
details: https://anonhg.NetBSD.org/src/rev/20f5e84afd17
branches: trunk
changeset: 356718:20f5e84afd17
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Oct 08 21:18:14 2017 +0000
description:
Initialize tfd even when not waiting for DSC.
diffstat:
sys/dev/ic/mvsata.c | 6 +++---
sys/dev/scsipi/atapi_wdc.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r f9b646fd1cf9 -r 20f5e84afd17 sys/dev/ic/mvsata.c
--- a/sys/dev/ic/mvsata.c Sun Oct 08 21:12:27 2017 +0000
+++ b/sys/dev/ic/mvsata.c Sun Oct 08 21:18:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvsata.c,v 1.36 2017/10/07 16:05:32 jdolecek Exp $ */
+/* $NetBSD: mvsata.c,v 1.37 2017/10/08 21:18:14 joerg Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.36 2017/10/07 16:05:32 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.37 2017/10/08 21:18:14 joerg Exp $");
#include "opt_mvsata.h"
@@ -2609,7 +2609,7 @@
struct wdc_softc *wdc = CHAN_TO_WDC(chp);
struct scsipi_xfer *sc_xfer = xfer->c_scsipi;
struct ata_drive_datas *drvp = &chp->ch_drive[xfer->c_drive];
- int tfd;
+ int tfd = 0;
ata_channel_lock_owned(chp);
diff -r f9b646fd1cf9 -r 20f5e84afd17 sys/dev/scsipi/atapi_wdc.c
--- a/sys/dev/scsipi/atapi_wdc.c Sun Oct 08 21:12:27 2017 +0000
+++ b/sys/dev/scsipi/atapi_wdc.c Sun Oct 08 21:18:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atapi_wdc.c,v 1.124 2017/10/07 16:05:33 jdolecek Exp $ */
+/* $NetBSD: atapi_wdc.c,v 1.125 2017/10/08 21:18:14 joerg Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.124 2017/10/07 16:05:33 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.125 2017/10/08 21:18:14 joerg Exp $");
#ifndef ATADEBUG
#define ATADEBUG
@@ -1046,7 +1046,7 @@
#endif
struct scsipi_xfer *sc_xfer = xfer->c_scsipi;
struct ata_drive_datas *drvp = &chp->ch_drive[xfer->c_drive];
- int tfd;
+ int tfd = 0;
ata_channel_lock_owned(chp);
Home |
Main Index |
Thread Index |
Old Index