]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: gfs2_create_inode error handling fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 18 Apr 2025 14:40:58 +0000 (16:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:06 +0000 (11:07 +0100)
commit5bf31f49067eabed5e8cdd832a1c22cef05bf516
treef0c5339a781d23a6a1a8895774bf5b12b2df6433
parent85286e634ebbaf9c0fb1cdf580add2f33fc7628c
gfs2: gfs2_create_inode error handling fix

[ Upstream commit af4044fd0b77e915736527dd83011e46e6415f01 ]

When gfs2_create_inode() finds a directory, make sure to return -EISDIR.

Fixes: 571a4b57975a ("GFS2: bugger off early if O_CREAT open finds a directory")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/gfs2/inode.c