Re: Linux 6.12.98

From: Greg Kroah-Hartman

Date: Sat Jul 25 2026 - 02:05:18 EST


diff --git a/Makefile b/Makefile
index 2eda2cddaace..671079b33674 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 12
-SUBLEVEL = 97
+SUBLEVEL = 98
EXTRAVERSION =
NAME = Baby Opossum Posse

diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index a8a024bb62b4..e726f9dbc146 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -1372,8 +1372,10 @@ static long __ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
goto mext_out;
}

- if (file_inode(filp)->i_sb != file_inode(fd_file(donor))->i_sb)
- return -EXDEV;
+ if (file_inode(filp)->i_sb != file_inode(fd_file(donor))->i_sb) {
+ err = -EXDEV;
+ goto mext_out;
+ }

err = mnt_want_write_file(filp);
if (err)