]> Gentwo Git Trees - linux/.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)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 21 Apr 2025 16:20:36 +0000 (18:20 +0200)
commitaf4044fd0b77e915736527dd83011e46e6415f01
treed71e2b1a7b7dfdac920491696b974be81ea295a3
parent4023c3cbc38f891c0d54d45a0ba0a1b4c289214a
gfs2: gfs2_create_inode error handling fix

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>
fs/gfs2/inode.c