diff options
author | Helge Deller <deller@gmx.de> | 2023-05-12 12:50:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-09 11:34:09 +0300 |
commit | f83c32ed05d428884918eca34a7d87378f0194cd (patch) | |
tree | 5f83bf03c41cf5ffe82668d0d560e8d5de894b07 /drivers/video/fbdev | |
parent | be2aefa202a5af820c3adfb7731f68c0941d7702 (diff) | |
download | linux-f83c32ed05d428884918eca34a7d87378f0194cd.tar.xz |
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 <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r-- | drivers/video/fbdev/stifb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c index ef8a4c5fc687..63f51783352d 100644 --- a/drivers/video/fbdev/stifb.c +++ b/drivers/video/fbdev/stifb.c @@ -1413,6 +1413,7 @@ out_err1: iounmap(info->screen_base); out_err0: kfree(fb); + sti->info = NULL; return -ENXIO; } |