]> git.itanic.dy.fi Git - linux-stable/commitdiff
fbdev: stifb: Fix info entry in sti_struct on error path
authorHelge Deller <deller@gmx.de>
Fri, 12 May 2023 09:50:33 +0000 (11:50 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 12 May 2023 09:50:33 +0000 (11:50 +0200)
Minor fix to reset the info field to NULL in case of error.

Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/stifb.c

index 29912ee80f5bfa98fe99ad8340eec95ff13b88c2..14c9215284c504df26901f8f00e94a0131426efb 100644 (file)
@@ -1413,6 +1413,7 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
        iounmap(info->screen_base);
 out_err0:
        kfree(fb);
+       sti->info = NULL;
        return -ENXIO;
 }