Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2018 05:48:42 +0000 (UTC)
From:      Michael Zhilin <mizhka@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328389 - head/sys/dev/etherswitch/rtl8366
Message-ID:  <201801250548.w0P5mgHj022823@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mizhka
Date: Thu Jan 25 05:48:42 2018
New Revision: 328389
URL: https://svnweb.freebsd.org/changeset/base/328389

Log:
  [etherswitch] fix LINT build for rtl8366rb
  
  Build with rtl8366rb has been broken due to incorrect retrieval of pointer
  to device_t.
  
  Reported by:	lwhsu
  Differential Revision:	https://reviews.freebsd.org/D14044

Modified:
  head/sys/dev/etherswitch/rtl8366/rtl8366rb.c

Modified: head/sys/dev/etherswitch/rtl8366/rtl8366rb.c
==============================================================================
--- head/sys/dev/etherswitch/rtl8366/rtl8366rb.c	Thu Jan 25 05:15:44 2018	(r328388)
+++ head/sys/dev/etherswitch/rtl8366/rtl8366rb.c	Thu Jan 25 05:48:42 2018	(r328389)
@@ -240,7 +240,7 @@ rtl8366rb_attach(device_t dev)
 	for (i = 0; i < sc->numphys; i++) {
 		sc->ifp[i] = if_alloc(IFT_ETHER);
 		if (sc->ifp[i] == NULL) {
-			device_printf(sc->sc_dev, "couldn't allocate ifnet structure\n");
+			device_printf(dev, "couldn't allocate ifnet structure\n");
 			err = ENOMEM;
 			break;
 		}



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