Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2016 19:54:17 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299133 - head/sys/dev/bhnd/siba
Message-ID:  <201605051954.u45JsHS9047421@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu May  5 19:54:17 2016
New Revision: 299133
URL: https://svnweb.freebsd.org/changeset/base/299133

Log:
  [bhnd] handle unknown bhnd port type.

Modified:
  head/sys/dev/bhnd/siba/siba_subr.c

Modified: head/sys/dev/bhnd/siba/siba_subr.c
==============================================================================
--- head/sys/dev/bhnd/siba/siba_subr.c	Thu May  5 19:44:06 2016	(r299132)
+++ head/sys/dev/bhnd/siba/siba_subr.c	Thu May  5 19:54:17 2016	(r299133)
@@ -187,6 +187,11 @@ siba_dinfo_get_port(struct siba_devinfo 
 		return (NULL);
 	case BHND_PORT_AGENT:
 		return (NULL);
+	default:
+		printf("%s: unknown port_type (%d)\n",
+		    __func__,
+		    port_type);
+		return (NULL);
 	}
 }
 
@@ -369,4 +374,4 @@ siba_parse_admatch(uint32_t am, uint32_t
 	}
 
 	return (0);
-}
\ No newline at end of file
+}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605051954.u45JsHS9047421>