]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Julia Lawall reported this null pointer dereference, this should fix it.
authorMike Marshall <hubcap@omnibond.com>
Wed, 14 Feb 2024 20:57:53 +0000 (15:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:35 +0000 (13:07 +0200)
[ Upstream commit 9bf93dcfc453fae192fe5d7874b89699e8f800ac ]

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/orangefs/super.c

index 5254256a224d7a0a78f9673a42dc7df386370a4a..4ca8ed410c3cfeda80f5c1496a9885553ceec615 100644 (file)
@@ -527,7 +527,7 @@ struct dentry *orangefs_mount(struct file_system_type *fst,
        sb->s_fs_info = kzalloc(sizeof(struct orangefs_sb_info_s), GFP_KERNEL);
        if (!ORANGEFS_SB(sb)) {
                d = ERR_PTR(-ENOMEM);
-               goto free_sb_and_op;
+               goto free_op;
        }
 
        ret = orangefs_fill_sb(sb,