diff options
Diffstat (limited to 'module/spl')
-rwxr-xr-x[-rw-r--r--] | module/spl/spl-kmem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/spl/spl-kmem.c b/module/spl/spl-kmem.c index 0931fdfcf..2b68c297a 100644..100755 --- a/module/spl/spl-kmem.c +++ b/module/spl/spl-kmem.c @@ -383,6 +383,10 @@ spl_kmem_free_track(const void *ptr, size_t size) { kmem_debug_t *dptr; + /* Ignore NULL pointer since we haven't tracked it at all*/ + if (ptr == NULL) + return; + /* Must exist in hash due to kmem_alloc() */ dptr = kmem_del_init(&kmem_lock, kmem_table, KMEM_HASH_BITS, ptr); ASSERT3P(dptr, !=, NULL); |