[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220502130944.363776-1-javierm@redhat.com>
Date: Mon, 2 May 2022 15:09:42 +0200
From: Javier Martinez Canillas <javierm@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: Maxime Ripard <maxime@...no.tech>,
Thomas Zimmermann <tzimmermann@...e.de>,
Javier Martinez Canillas <javierm@...hat.com>,
Alex Deucher <alexander.deucher@....com>,
Changcheng Deng <deng.changcheng@....com.cn>,
Daniel Vetter <daniel@...ll.ch>,
Guenter Roeck <linux@...ck-us.net>,
Helge Deller <deller@....de>, Sam Ravnborg <sam@...nborg.org>,
Xiyu Yang <xiyuyang19@...an.edu.cn>,
Zhen Lei <thunder.leizhen@...wei.com>,
Zheyu Ma <zheyuma97@...il.com>,
dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org
Subject: [PATCH 0/2] fbdev: Fix a NULL pointer dereference in fb_release()
Hello,
This small series contains fixes for two bugs I found in fbmem.c, that may
explain a bug reported in the rpi4 [0] when using simplefb and vc4 drivers.
I was not able to reproduce the mentioned bug, but looking at the code I
think that it might explain the issue.
I've tested these patches in a rpi4 with both simplefb and vc4 drivers
built-in and did not find any regression.
[0]: https://github.com/raspberrypi/linux/issues/5011
Best regards,
Javier
Javier Martinez Canillas (2):
fbdev: Check in file_fb_info() if the fb_info was already been freed
fbdev: Make fb_release() return -ENODEV if fbdev was unregistered
drivers/video/fbdev/core/fbmem.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
--
2.35.1
Powered by blists - more mailing lists