Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86f1ca38 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: use EINVAL if not a regular file in ext4_collapse_range()



Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 6c5e73d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5404,7 +5404,7 @@ int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len)
		return -EINVAL;

	if (!S_ISREG(inode->i_mode))
		return -EOPNOTSUPP;
		return -EINVAL;

	trace_ext4_collapse_range(inode, offset, len);