Skip to content

Commit

Permalink
power/perf/hv-24x7: Use kmem_cache_free() instead of kfree
Browse files Browse the repository at this point in the history
Use kmem_cache_free() to free a buffer allocated with kmem_cache_alloc().

Signed-off-by: Sukadev Bhattiprolu <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
Sukadev Bhattiprolu authored and mpe committed Dec 12, 2014
1 parent f34b6c7 commit ec2aef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/perf/hv-24x7.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec2aef5

Please sign in to comment.