]> git.proxmox.com Git - mirror_spl.git/commit
Fix: handle NULL case in spl_kmem_free_track()
authorGeLiXin <ge.lixin@zte.com.cn>
Fri, 19 Aug 2016 06:50:21 +0000 (14:50 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Aug 2016 16:14:24 +0000 (09:14 -0700)
commitaeb9baa618beea1458ab3ab22cbc0f39213da6cf
treeae81639be26d78b5a4d5651780001a6fbb8adf25
parent576865be20ce4a0d4365cd62a589edec070fe08c
Fix: handle NULL case in spl_kmem_free_track()

When DEBUG_KMEM_TRACKING is enabled in SPL, we keep tracking all
the buffers alloced by kmem_alloc() and kmem_zalloc().  If a NULL
pointer which indicates no track info in SPL is passed to
spl_kmem_free_track, we just ignore it.

Signed-off-by: GeLiXin <ge.lixin@zte.com.cn>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue zfsonlinux/zfs#4967
Closes #567
module/spl/spl-kmem.c [changed mode: 0644->0755]