Re: [PATCH] drm: Fix potential null-ptr-deref due to drmm_mode_config_init()

2022-11-21 Thread Thomas Zimmermann
Hi, merged into drm-misc-next. Thanks a lot. Best regards Thomas Am 18.11.22 um 03:16 schrieb Shang XiaoJing: drmm_mode_config_init() will call drm_mode_create_standard_properties() and won't check the ret value. When drm_mode_create_standard_properties() failed due to alloc, property will be

[PATCH] drm: Fix potential null-ptr-deref due to drmm_mode_config_init()

2022-11-17 Thread Shang XiaoJing
drmm_mode_config_init() will call drm_mode_create_standard_properties() and won't check the ret value. When drm_mode_create_standard_properties() failed due to alloc, property will be a NULL pointer and may causes the null-ptr-deref. Fix the null-ptr-deref by adding the ret value check. Found