Page MenuHomeFreeBSD

D32828.diff
No OneTemporary

D32828.diff

diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -2961,8 +2961,8 @@
*errp = ENOBUFS;
goto done;
}
- sav->lock = malloc(sizeof(struct mtx), M_IPSEC_MISC,
- M_NOWAIT | M_ZERO);
+ sav->lock = malloc_aligned(max(sizeof(struct mtx), CACHE_LINE_SIZE),
+ CACHE_LINE_SIZE, M_IPSEC_MISC, M_NOWAIT | M_ZERO);
if (sav->lock == NULL) {
*errp = ENOBUFS;
goto done;

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 18, 2:56 PM (18 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15867340
Default Alt Text
D32828.diff (434 B)

Event Timeline