From: Helge Deller Date: Fri, 12 May 2023 09:50:33 +0000 (+0200) Subject: fbdev: stifb: Fix info entry in sti_struct on error path X-Git-Tag: v5.4.246~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19ce1e1f348de4a6e5ed45b9359c22e8a89deb68;p=thirdparty%2Fkernel%2Fstable.git 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: Helge Deller Signed-off-by: Sasha Levin --- diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c index e606fc7287947..9c2be08026514 100644 --- a/drivers/video/fbdev/stifb.c +++ b/drivers/video/fbdev/stifb.c @@ -1371,6 +1371,7 @@ out_err1: iounmap(info->screen_base); out_err0: kfree(fb); + sti->info = NULL; return -ENXIO; }