PERFORCE change 1201876 for review

John-Mark Gurney jmg at FreeBSD.org
Tue Oct 21 18:06:41 UTC 2014


http://p4web.freebsd.org/@@1201876?ac=10

Change 1201876 by jmg at jmg_carbon2 on 2014/10/21 18:05:54

	add header needed to compile...
	
	mtod casts to the type, not as the docs (previously) said a
	pointer to the type...
	
	Sponsored by:	FreeBSD Foundation
	Sponsored by:	Netgate

Affected files ...

.. //depot/projects/opencrypto/sys/crypto/aesni/aesni.c#12 edit

Differences ...

==== //depot/projects/opencrypto/sys/crypto/aesni/aesni.c#12 (text+ko) ====

@@ -44,6 +44,7 @@
 #include <sys/rwlock.h>
 #include <sys/bus.h>
 #include <sys/uio.h>
+#include <sys/mbuf.h>
 #include <crypto/aesni/aesni.h>
 #include <cryptodev_if.h>
 #include <opencrypto/gmac.h>
@@ -378,7 +379,7 @@
 		m = (struct mbuf *)crp->crp_buf;
 		if (m->m_next != NULL)
 			goto alloc;
-		addr = mtod(m, uint8_t);
+		addr = mtod(m, uint8_t *);
 	} else if (crp->crp_flags & CRYPTO_F_IOV) {
 		uio = (struct uio *)crp->crp_buf;
 		if (uio->uio_iovcnt != 1)


More information about the p4-projects mailing list