Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142160263
D32337.id96363.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
447 B
Referenced Files
None
Subscribers
None
D32337.id96363.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_slab.c b/sys/compat/linuxkpi/common/src/linux_slab.c
--- a/sys/compat/linuxkpi/common/src/linux_slab.c
+++ b/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
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 17, 2:58 PM (16 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27695416
Default Alt Text
D32337.id96363.diff (447 B)
Attached To
Mode
D32337: linuxkpi: Handle NULL cache pointer in kmem_cache_destroy()
Attached
Detach File
Event Timeline
Log In to Comment