Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19ce1e1f authored by Helge Deller's avatar Helge Deller Committed by Greg Kroah-Hartman
Browse files

fbdev: stifb: Fix info entry in sti_struct on error path



[ Upstream commit 0bdf1ad8d10bd4e50a8b1a2c53d15984165f7fea ]

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

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent aa32f2fa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1371,6 +1371,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;
}