Skip to content

Commit

Permalink
fbdev: stifb: Fix info entry in sti_struct on error path
Browse files Browse the repository at this point in the history
[ Upstream commit 0bdf1ad ]

Minor fix to reset the info field to NULL in case of error.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
hdeller authored and gregkh committed Jun 9, 2023
1 parent be2aefa commit f83c32e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/fbdev/stifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f83c32e

Please sign in to comment.