fbdev: Fix a NULL pointer dereference in fb_release()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fbdev: Check in file_fb_info() if the fb_info was already been freeddrivers/ | +7 | 2 replies | |
| 2/2 | fbdev: Make fb_release() return -ENODEV if fbdev was unregistereddrivers/ | +4 | 5 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Thomas Zimmermann |
|---|---|
| 1/2 | A-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [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(-)
Signature · 1 line
2.35.1