]> Git Repo - linux.git/commitdiff
fbdev: stifb: Fix info entry in sti_struct on error path
authorHelge Deller <[email protected]>
Fri, 12 May 2023 09:50:33 +0000 (11:50 +0200)
committerHelge Deller <[email protected]>
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 <[email protected]>
drivers/video/fbdev/stifb.c

index 29912ee80f5bfa98fe99ad8340eec95ff13b88c2..14c9215284c504df26901f8f00e94a0131426efb 100644 (file)
@@ -1413,6 +1413,7 @@ out_err1:
        iounmap(info->screen_base);
 out_err0:
        kfree(fb);
+       sti->info = NULL;
        return -ENXIO;
 }
 
This page took 0.060902 seconds and 4 git commands to generate.