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

Commit f0acb12b authored by Chung-Chiang Cheng's avatar Chung-Chiang Cheng Committed by Greg Kroah-Hartman
Browse files

configfs: fix memleak in configfs_release_bin_file



[ Upstream commit 3c252b087de08d3cb32468b54a158bd7ad0ae2f7 ]

When reading binary attributes in progress, buffer->bin_buffer is setup in
configfs_read_bin_file() but never freed.

Fixes: 03607ace ("configfs: implement binary attributes")
Signed-off-by: default avatarChung-Chiang Cheng <cccheng@synology.com>
[hch: move the vfree rather than duplicating it]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2993c1f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment