Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c44a234 authored by Wei Yongjun's avatar Wei Yongjun Committed by J. Bruce Fields
Browse files

nfsd: use kmem_cache_free() instead of kfree()



memory allocated by kmem_cache_alloc() should be freed using
kmem_cache_free(), not kfree().

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: stable@kernel.org
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 9411b1d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ kmem_cache *slab)
		min_stateid = 0;
	return stid;
out_free:
	kfree(stid);
	kmem_cache_free(slab, stid);
	return NULL;
}