Skip to content

Commit

Permalink
Julia Lawall reported this null pointer dereference, this should fix it.
Browse files Browse the repository at this point in the history
[ Upstream commit 9bf93dc ]

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
hubcapsc authored and gregkh committed Apr 13, 2024
1 parent 24e5e1e commit 214a6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/orangefs/super.c
Expand Up @@ -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,
Expand Down

0 comments on commit 214a6c4

Please sign in to comment.