Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Fix: handle NULL case in spl_kmem_free_track() #567

Closed
wants to merge 1 commit into from

Conversation

GeLiXin
Copy link
Contributor

@GeLiXin GeLiXin commented Aug 19, 2016

Reference issue: #openzfs/zfs#4967

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.

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.
@behlendorf
Copy link
Contributor

LGTM

@behlendorf
Copy link
Contributor

Mergerd as:

aeb9baa Fix: handle NULL case in spl_kmem_free_track()

nedbass pushed a commit to nedbass/spl that referenced this pull request Aug 26, 2016
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs/zfs#4967
Closes openzfs#567
tuxoko pushed a commit to tuxoko/spl that referenced this pull request Sep 8, 2016
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs/zfs#4967
Closes openzfs#567
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants