diff options
author | Dave Airlie <airlied@redhat.com> | 2023-02-17 09:23:43 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2023-02-17 09:24:05 +1000 |
commit | a2a04b515562bbb040e8ae3decae8c1e9ef05327 (patch) | |
tree | 41bb9758c0cbb38ab830cb45c4dd9156db0599a1 /drivers/video | |
parent | caa068c9bb2bc86e6da2caf8508f3fda24d4dea0 (diff) | |
parent | a950b989ea29ab3b38ea7f6e3d2540700a3c54e8 (diff) | |
download | linux-a2a04b515562bbb040e8ae3decae8c1e9ef05327.tar.gz linux-a2a04b515562bbb040e8ae3decae8c1e9ef05327.tar.bz2 linux-a2a04b515562bbb040e8ae3decae8c1e9ef05327.zip |
Merge tag 'drm-misc-fixes-2023-02-16' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
Multiple fixes in vc4 to address issues with YUV planes, HDMI and CRTC;
an invalid page access fix for fbdev, mark dynamic debug as broken, a
double free and refcounting fix for vmwgfx.
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20230216091905.i5wswy4dd74x4br5@houat
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/core/fb_defio.c | 10 | ||||
-rw-r--r-- | drivers/video/fbdev/core/fbmem.c | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/drivers/video/fbdev/core/fb_defio.c b/drivers/video/fbdev/core/fb_defio.c index c730253ab85c..583cbcf09446 100644 --- a/drivers/video/fbdev/core/fb_defio.c +++ b/drivers/video/fbdev/core/fb_defio.c @@ -313,7 +313,7 @@ void fb_deferred_io_open(struct fb_info *info, } EXPORT_SYMBOL_GPL(fb_deferred_io_open); -void fb_deferred_io_cleanup(struct fb_info *info) +void fb_deferred_io_release(struct fb_info *info) { struct fb_deferred_io *fbdefio = info->fbdefio; struct page *page; @@ -327,6 +327,14 @@ void fb_deferred_io_cleanup(struct fb_info *info) page = fb_deferred_io_page(info, i); page->mapping = NULL; } +} +EXPORT_SYMBOL_GPL(fb_deferred_io_release); + +void fb_deferred_io_cleanup(struct fb_info *info) +{ + struct fb_deferred_io *fbdefio = info->fbdefio; + + fb_deferred_io_release(info); kvfree(info->pagerefs); mutex_destroy(&fbdefio->lock); diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c index 3a6c8458eb8d..ab3545a00abc 100644 --- a/drivers/video/fbdev/core/fbmem.c +++ b/drivers/video/fbdev/core/fbmem.c @@ -1454,6 +1454,10 @@ __releases(&info->lock) struct fb_info * const info = file->private_data; lock_fb_info(info); +#if IS_ENABLED(CONFIG_FB_DEFERRED_IO) + if (info->fbdefio) + fb_deferred_io_release(info); +#endif if (info->fbops->fb_release) info->fbops->fb_release(info,1); module_put(info->fbops->owner); |