Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/ic Pull up following revision(s) (requested by ml...



details:   https://anonhg.NetBSD.org/src/rev/c8463b0f00e8
branches:  netbsd-9
changeset: 964122:c8463b0f00e8
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Sep 16 13:29:53 2020 +0000

description:
Pull up following revision(s) (requested by mlelstv in ticket #1085):

        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 e1a5ddbdc0ad -r c8463b0f00e8 sys/dev/ic/mpt_netbsd.c
--- a/sys/dev/ic/mpt_netbsd.c   Sun Sep 13 15:52:02 2020 +0000
+++ b/sys/dev/ic/mpt_netbsd.c   Wed Sep 16 13:29:53 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.36.2.1 2020/09/16 13:29:53 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.36 2019/05/08 06:32:01 cnst Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.36.2.1 2020/09/16 13:29:53 martin 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