This series improves allocation failure handling in DRM connector property helpers and their callers.
Patches 1, 2, 4 and 5 prevent NULL properties from reaching property attach or update paths. Patch 3 propagates content type property creation errors and reports failures in the Intel and AMDGPU callers while preserving initialization without this optional property. Patch 4 reuses the Nouveau cleanup added by patch 2. Please apply the series in order. Validation performed during development on the previous base: - Compiled the affected DRM core and driver translation units using the existing x86 kernel configuration, including Nouveau, Intel display, AMDGPU, Radeon and GMA500 paths. - Checked the diffs with git diff --check and scripts/checkpatch.pl. - Exercised the extracted privacy-screen creation and provider functions with userspace stubs for allocation failures, rollback, retry, idempotence and provider reference ownership. No full kernel link, hardware testing or in-kernel allocation fault injection was performed. Alex Kazinsky (5): drm/connector: Check DP subconnector property before attaching it drm/connector: Handle DVI-I property allocation failures drm/connector: Propagate content type property creation errors drm/connector: Handle scaling mode property allocation failures drm/connector: Handle privacy-screen property allocation failures drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 6 +- .../display/amdgpu_dm/amdgpu_dm_connector.c | 3 +- drivers/gpu/drm/drm_connector.c | 94 ++++++++++++++----- drivers/gpu/drm/gma500/cdv_device.c | 2 - drivers/gpu/drm/gma500/framebuffer.c | 17 ++-- drivers/gpu/drm/gma500/psb_drv.c | 4 +- drivers/gpu/drm/gma500/psb_drv.h | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 3 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 3 +- drivers/gpu/drm/nouveau/nouveau_display.c | 11 ++- drivers/gpu/drm/radeon/radeon_display.c | 6 +- include/drm/drm_connector.h | 2 +- 12 files changed, 107 insertions(+), 46 deletions(-) base-commit: 25faec9ce61c01fb45abf812a222c5b43c3cd5c5 -- 2.56.0
