]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-6.8/julia-lawall-reported-this-null-pointer-dereference-.patch
Fixes for 6.8
[thirdparty/kernel/stable-queue.git] / queue-6.8 / julia-lawall-reported-this-null-pointer-dereference-.patch
1 From 7b33a38d79703dfc20b61b58de0e3a2d79bdf598 Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Wed, 14 Feb 2024 15:57:53 -0500
4 Subject: Julia Lawall reported this null pointer dereference, this should fix
5 it.
6
7 From: Mike Marshall <hubcap@omnibond.com>
8
9 [ Upstream commit 9bf93dcfc453fae192fe5d7874b89699e8f800ac ]
10
11 Signed-off-by: Mike Marshall <hubcap@omnibond.com>
12 Signed-off-by: Sasha Levin <sashal@kernel.org>
13 ---
14 fs/orangefs/super.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c
18 index 5254256a224d7..4ca8ed410c3cf 100644
19 --- a/fs/orangefs/super.c
20 +++ b/fs/orangefs/super.c
21 @@ -527,7 +527,7 @@ struct dentry *orangefs_mount(struct file_system_type *fst,
22 sb->s_fs_info = kzalloc(sizeof(struct orangefs_sb_info_s), GFP_KERNEL);
23 if (!ORANGEFS_SB(sb)) {
24 d = ERR_PTR(-ENOMEM);
25 - goto free_sb_and_op;
26 + goto free_op;
27 }
28
29 ret = orangefs_fill_sb(sb,
30 --
31 2.43.0
32