projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be2aefa
)
fbdev: stifb: Fix info entry in sti_struct on error path
author
Helge Deller
<deller@gmx.de>
Fri, 12 May 2023 09:50:33 +0000
(11:50 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:09 +0000
(10:34 +0200)
[ Upstream commit
0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea
]
Minor fix to reset the info field to NULL in case of error.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/stifb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/stifb.c
b/drivers/video/fbdev/stifb.c
index
ef8a4c5
..
63f5178
100644
(file)
--- a/
drivers/video/fbdev/stifb.c
+++ b/
drivers/video/fbdev/stifb.c
@@
-1413,6
+1413,7
@@
out_err1:
iounmap(info->screen_base);
out_err0:
kfree(fb);
+ sti->info = NULL;
return -ENXIO;
}