Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111047157
D46572.id143068.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
651 B
Referenced Files
None
Subscribers
None
D46572.id143068.diff
View Options
diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h
--- a/sys/opencrypto/cryptodev.h
+++ b/sys/opencrypto/cryptodev.h
@@ -71,6 +71,7 @@
#include <sys/_task.h>
#include <sys/libkern.h>
#include <sys/time.h>
+#include <sys/mbuf.h>
#endif
/* Some initial values */
@@ -489,6 +490,7 @@
static __inline void
_crypto_use_mbuf(struct crypto_buffer *cb, struct mbuf *m)
{
+ MPASS(M_WRITABLE(m));
cb->cb_mbuf = m;
cb->cb_type = CRYPTO_BUF_MBUF;
}
@@ -532,6 +534,7 @@
static __inline void
crypto_use_single_mbuf(struct cryptop *crp, struct mbuf *m)
{
+ MPASS(M_WRITABLE(m));
_crypto_use_single_mbuf(&crp->crp_buf, m);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 27, 4:29 PM (15 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16871382
Default Alt Text
D46572.id143068.diff (651 B)
Attached To
Mode
D46572: opencrypto: assert that mbufs are writable
Attached
Detach File
Event Timeline
Log In to Comment