Skip to content

Commit 0bdf1ad

Browse files
committed
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>
1 parent c890225 commit 0bdf1ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/video/fbdev/stifb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,6 +1413,7 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
14131413
iounmap(info->screen_base);
14141414
out_err0:
14151415
kfree(fb);
1416+
sti->info = NULL;
14161417
return -ENXIO;
14171418
}
14181419

0 commit comments

Comments
 (0)