mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 14:56:54 -04:00
Merge tag 'drm-misc-fixes-2023-01-26' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
A fix and a preliminary patch to fix a memory leak in i915, and a use after free fix for fbdev deferred io Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20230126104018.cbrcjxl5wefdbb2f@houat
This commit is contained in:
@@ -208,6 +208,18 @@ struct drm_fb_helper {
|
||||
* the smem_start field should always be cleared to zero.
|
||||
*/
|
||||
bool hint_leak_smem_start;
|
||||
|
||||
#ifdef CONFIG_FB_DEFERRED_IO
|
||||
/**
|
||||
* @fbdefio:
|
||||
*
|
||||
* Temporary storage for the driver's FB deferred I/O handler. If the
|
||||
* driver uses the DRM fbdev emulation layer, this is set by the core
|
||||
* to a generic deferred I/O handler if a driver is preferring to use
|
||||
* a shadow buffer.
|
||||
*/
|
||||
struct fb_deferred_io fbdefio;
|
||||
#endif
|
||||
};
|
||||
|
||||
static inline struct drm_fb_helper *
|
||||
|
||||
@@ -74,6 +74,7 @@ void drm_vma_offset_remove(struct drm_vma_offset_manager *mgr,
|
||||
struct drm_vma_offset_node *node);
|
||||
|
||||
int drm_vma_node_allow(struct drm_vma_offset_node *node, struct drm_file *tag);
|
||||
int drm_vma_node_allow_once(struct drm_vma_offset_node *node, struct drm_file *tag);
|
||||
void drm_vma_node_revoke(struct drm_vma_offset_node *node,
|
||||
struct drm_file *tag);
|
||||
bool drm_vma_node_is_allowed(struct drm_vma_offset_node *node,
|
||||
|
||||
Reference in New Issue
Block a user