summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEkansh Gupta <ekansh.gupta@oss.qualcomm.com>2026-07-24 23:33:37 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-31 10:59:47 +0200
commitab99eaafb0c4b412cfeb895a8cf091626e2bbd86 (patch)
tree5c69ae3c0068cfd244516f42e8cce25103531d66 /tools
parentf5098b6bae761e346ebcd9da7f95622c04733cff (diff)
misc: fastrpc: Fix initial memory allocation for Audio PD memory pool
The initial buffer allocated for the Audio PD memory pool is never added to the pool because pageslen is set to 0. As a result, the buffer is not registered with Audio PD and is never used, causing a memory leak. Audio PD immediately falls back to allocating memory from the remote heap since the pool starts out empty. Fix this by setting pageslen to 1 so that the initially allocated buffer is correctly registered and becomes part of the Audio PD memory pool. Fixes: 0871561055e66 ("misc: fastrpc: Add support for audiopd") Cc: stable@kernel.org Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com> Signed-off-by: Jianping Li <jianping.li@oss.qualcomm.com> Signed-off-by: Srinivas Kandagatla <srini@kernel.org> Link: https://patch.msgid.link/20260724223342.629168-2-srini@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions