Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic max_devices is a 8bit value and zero is interpret...
details: https://anonhg.NetBSD.org/src/rev/1d7df06894b2
branches: trunk
changeset: 938832:1d7df06894b2
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Tue Sep 15 17:21:39 2020 +0000
description:
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 053237515a5c -r 1d7df06894b2 sys/dev/ic/mpt_netbsd.c
--- a/sys/dev/ic/mpt_netbsd.c Tue Sep 15 16:22:04 2020 +0000
+++ b/sys/dev/ic/mpt_netbsd.c Tue Sep 15 17:21:39 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpt_netbsd.c,v 1.36 2019/05/08 06:32:01 cnst Exp $ */
+/* $NetBSD: mpt_netbsd.c,v 1.37 2020/09/15 17:21:39 mlelstv Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.36 2019/05/08 06:32:01 cnst Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.37 2020/09/15 17:21:39 mlelstv Exp $");
#include "bio.h"
@@ -150,7 +150,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