summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-05-12 11:50:33 +0200
committerHelge Deller <deller@gmx.de>2023-05-12 11:50:33 +0200
commit0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea (patch)
tree314dc4b4a7253bb4edacbc7bff48f9a1ffea2b01 /drivers/video
parentc8902258b2b8ecaa1b8d88c312853c5b14c2553d (diff)
fbdev: stifb: Fix info entry in sti_struct on error path
Minor fix to reset the info field to NULL in case of error. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/stifb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c
index 29912ee80f5b..14c9215284c5 100644
--- 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;
}