Page MenuHomeFreeBSD

D32337.id96345.diff
No OneTemporary

D32337.id96345.diff

Index: sys/compat/linuxkpi/common/src/linux_slab.c
===================================================================
--- sys/compat/linuxkpi/common/src/linux_slab.c
+++ sys/compat/linuxkpi/common/src/linux_slab.c
@@ -193,6 +193,9 @@
void
linux_kmem_cache_destroy(struct linux_kmem_cache *c)
{
+ if (c == NULL)
+ return;
+
if (unlikely(c->cache_flags & SLAB_TYPESAFE_BY_RCU)) {
/* make sure all free callbacks have been called */
rcu_barrier();

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 22, 7:32 AM (1 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31962096
Default Alt Text
D32337.id96345.diff (458 B)

Event Timeline