Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2018 18:57:01 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329742 - head/sys/net
Message-ID:  <201802211857.w1LIv1Qv038313@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Wed Feb 21 18:57:00 2018
New Revision: 329742
URL: https://svnweb.freebsd.org/changeset/base/329742

Log:
  IFLIB: Make isc_magic unsigned
  
  The IFLIB_MAGIC macro is > INT_MAX, so isc_magic should
  be able to contain it.
  
  Reported by:	jeb
  Sponsored by:	Limelight  Networks

Modified:
  head/sys/net/iflib.h

Modified: head/sys/net/iflib.h
==============================================================================
--- head/sys/net/iflib.h	Wed Feb 21 18:32:57 2018	(r329741)
+++ head/sys/net/iflib.h	Wed Feb 21 18:57:00 2018	(r329742)
@@ -229,7 +229,7 @@ typedef struct if_softc_ctx {
  * Initialization values for device
  */
 struct if_shared_ctx {
-	int isc_magic;
+	unsigned isc_magic;
 	driver_t *isc_driver;
 	bus_size_t isc_q_align;
 	bus_size_t isc_tx_maxsize;



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