mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
xfs: fix memory leak in xfs_growfs_check_rtgeom()
Free the "nmp" allocation before returning -EINVAL.
Fixes: dc68c0f601 ("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>
This commit is contained in:
parent
dc68c0f601
commit
8dad31f85c
|
|
@ -1265,7 +1265,7 @@ xfs_growfs_check_rtgeom(
|
|||
uint32_t rem;
|
||||
|
||||
if (rextsize != 1)
|
||||
return -EINVAL;
|
||||
goto out_inval;
|
||||
div_u64_rem(nmp->m_sb.sb_rblocks, gblocks, &rem);
|
||||
if (rem) {
|
||||
xfs_warn(mp,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user