aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorAnusha Srivatsa <[email protected]>2025-03-31 15:15:26 +0000
committerMaxime Ripard <[email protected]>2025-04-01 14:58:04 +0000
commitdcba396f69073d4ea8c04374fdd207e67e5b5a94 (patch)
tree7c7d5e6aeded8b9a21e1b840db63a20b022d3039 /drivers/platform/x86/intel/pmt/class.c
parentdrm/panel: Add new helpers for refcounted panel allocatons (diff)
downloadkernel-dcba396f69073d4ea8c04374fdd207e67e5b5a94.tar.gz
kernel-dcba396f69073d4ea8c04374fdd207e67e5b5a94.zip
drm/panel: Add refcount support
Allocate panel via reference counting. Add _get() and _put() helper functions to ensure panel allocations are refcounted. Avoid use after free by ensuring panel pointer is valid and can be usable till the last reference is put. Reviewed-by: Luca Ceresoli <[email protected]> Reviewed-by: Maxime Ripard <[email protected]> Signed-off-by: Anusha Srivatsa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions