Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2018 21:53:18 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337727 - head/sys/dev/sbni
Message-ID:  <201808132153.w7DLrI4W009387@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Mon Aug 13 21:53:18 2018
New Revision: 337727
URL: https://svnweb.freebsd.org/changeset/base/337727

Log:
  Copy out from kernel to data, not the other way around.
  
  MFC after:	3 days
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/dev/sbni/if_sbni.c

Modified: head/sys/dev/sbni/if_sbni.c
==============================================================================
--- head/sys/dev/sbni/if_sbni.c	Mon Aug 13 20:29:39 2018	(r337726)
+++ head/sys/dev/sbni/if_sbni.c	Mon Aug 13 21:53:18 2018	(r337727)
@@ -1153,7 +1153,7 @@ sbni_ioctl(struct ifnet *ifp, u_long command, caddr_t 
 		SBNI_LOCK(sc);
 		bcopy(&sc->in_stats, in_stats, sizeof(struct sbni_in_stats));
 		SBNI_UNLOCK(sc);
-		error = copyout(ifr_data_get_ptr(ifr), in_stats,
+		error = copyout(in_stats, ifr_data_get_ptr(ifr),
 		    sizeof(struct sbni_in_stats));
 		free(in_stats, M_DEVBUF);
 		break;



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