]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: fix memory leak in xfs_growfs_check_rtgeom()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 19 Dec 2025 10:33:50 +0000 (13:33 +0300)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jan 2026 11:57:27 +0000 (12:57 +0100)
commit8dad31f85c7b91fd8bdbc6d0f27abc53bd8b1ffe
treebac22709a769aa0796869e1701088ff2f723cca4
parentdc68c0f601691010dd5ae53442f8523f41a53131
xfs: fix memory leak in xfs_growfs_check_rtgeom()

Free the "nmp" allocation before returning -EINVAL.

Fixes: dc68c0f60169 ("xfs: fix the zoned RT growfs check for zone alignment")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_rtalloc.c