Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/dev/ic Pull up following revision(s) (requested by ml...
details: https://anonhg.NetBSD.org/src/rev/3b4cecf215b2
branches: netbsd-8
changeset: 938841:3b4cecf215b2
user: martin <martin%NetBSD.org@localhost>
date: Wed Sep 16 13:31:20 2020 +0000
description:
Pull up following revision(s) (requested by mlelstv in ticket #1605):
sys/dev/ic/mpt_netbsd.c: revision 1.37
max_devices is a 8bit value and zero is interpreted as 256. This value
can be reported by an mpt device emulated by VMware ESXi.
diffstat:
sys/dev/ic/mpt_netbsd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5fbae14b378f -r 3b4cecf215b2 sys/dev/ic/mpt_netbsd.c
--- a/sys/dev/ic/mpt_netbsd.c Sun Sep 13 12:17:25 2020 +0000
+++ b/sys/dev/ic/mpt_netbsd.c Wed Sep 16 13:31:20 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpt_netbsd.c,v 1.33 2016/05/02 19:18:29 christos Exp $ */
+/* $NetBSD: mpt_netbsd.c,v 1.33.10.1 2020/09/16 13:31:20 martin Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.33 2016/05/02 19:18:29 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.33.10.1 2020/09/16 13:31:20 martin Exp $");
#include "bio.h"
@@ -151,7 +151,7 @@
chan->chan_channel = 0;
chan->chan_flags = 0;
chan->chan_nluns = 8;
- chan->chan_ntargets = mpt->mpt_max_devices;
+ chan->chan_ntargets = mpt->mpt_max_devices ? mpt->mpt_max_devices : 256;
chan->chan_id = mpt->mpt_ini_id;
/*
Home |
Main Index |
Thread Index |
Old Index