diff options
author | Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> | 2014-12-10 06:43:34 (GMT) |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-12-12 05:06:13 (GMT) |
commit | ec2aef5a8d3c14272f7a2d29b34f1f8e71f2be5b (patch) | |
tree | dad8685e6f9888e11378474fe23942396afe8757 /arch/powerpc/perf/hv-24x7.c | |
parent | f34b6c72c3ebaa286d3311a825ef79eccbcca82f (diff) | |
download | linux-ec2aef5a8d3c14272f7a2d29b34f1f8e71f2be5b.tar.xz |
power/perf/hv-24x7: Use kmem_cache_free() instead of kfree
Use kmem_cache_free() to free a buffer allocated with kmem_cache_alloc().
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf/hv-24x7.c')
-rw-r--r-- | arch/powerpc/perf/hv-24x7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index d073e06..f162d0b 100644 --- a/arch/powerpc/perf/hv-24x7.c +++ b/arch/powerpc/perf/hv-24x7.c @@ -177,7 +177,7 @@ static ssize_t _name##_show(struct device *dev, \ } \ ret = sprintf(buf, _fmt, _expr); \ e_free: \ - kfree(page); \ + kmem_cache_free(hv_page_cache, page); \ return ret; \ } \ static DEVICE_ATTR_RO(_name) |