diff options
author | Helge Deller <deller@gmx.de> | 2023-05-12 11:50:33 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-05-12 11:50:33 +0200 |
commit | 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea (patch) | |
tree | 314dc4b4a7253bb4edacbc7bff48f9a1ffea2b01 /drivers/video/fbdev | |
parent | c8902258b2b8ecaa1b8d88c312853c5b14c2553d (diff) | |
download | linux-0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea.tar.gz linux-0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea.tar.bz2 linux-0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea.zip |
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/fbdev')
-rw-r--r-- | drivers/video/fbdev/stifb.c | 1 |
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; } |