]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix some memory leaks in log recovery
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Sep 2022 12:56:49 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:04:10 +0000 (11:04 +0200)
commit23bfdc5440569295fb109474d2ebb51ca60ab9a3
tree5fe8f4a31118ad854c38be2882b76614c56bec06
parent32bd337d24eb35a812caedd6988c6f9d9fa8702d
xfs: fix some memory leaks in log recovery

commit 862f714817733bd603887a167b53d96e43cb7a12 upstream.

Fix a few places where we xlog_alloc_buffer a buffer, hit an error, and
then bail out without freeing the buffer.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_log_recover.c