diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2025-01-24 11:45:09 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-17 10:05:30 +0100 |
| commit | 31c2134667ee4228a3fbb7f1a69930c7938f7b88 (patch) | |
| tree | f802a293bb81af079846288a623e96908b9e8925 /lib/debugobjects.c | |
| parent | a5e7a81e3a602f3617e507d2d5f2fe4300a66619 (diff) | |
| download | linux-31c2134667ee4228a3fbb7f1a69930c7938f7b88.tar.gz linux-31c2134667ee4228a3fbb7f1a69930c7938f7b88.tar.bz2 linux-31c2134667ee4228a3fbb7f1a69930c7938f7b88.zip | |
xfs: Add error handling for xfs_reflink_cancel_cow_range
commit 26b63bee2f6e711c5a169997fd126fddcfb90848 upstream.
In xfs_inactive(), xfs_reflink_cancel_cow_range() is called
without error handling, risking unnoticed failures and
inconsistent behavior compared to other parts of the code.
Fix this issue by adding an error handling for the
xfs_reflink_cancel_cow_range(), improving code robustness.
Fixes: 6231848c3aa5 ("xfs: check for cow blocks before trying to clear them")
Cc: stable@vger.kernel.org # v4.17
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
