mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 05:50:19 +00:00
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>
This commit is contained in:
parent
f34b6c72c3
commit
ec2aef5a8d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user