Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dan Carpenter and committed by
Carlos Maiolino
8dad31f8 dc68c0f6

+1 -1
+1 -1
fs/xfs/xfs_rtalloc.c
··· 1265 1265 uint32_t rem; 1266 1266 1267 1267 if (rextsize != 1) 1268 - return -EINVAL; 1268 + goto out_inval; 1269 1269 div_u64_rem(nmp->m_sb.sb_rblocks, gblocks, &rem); 1270 1270 if (rem) { 1271 1271 xfs_warn(mp,