Re: [PATCH] drm/amd/display: Add null pointer check in mod_hdcp_hdcp1_create_session()

2025-08-17 Thread Alex Hung
Reviewed-by: Alex Hung On 7/23/25 20:36, Chenyuan Yang wrote: The function mod_hdcp_hdcp1_create_session() calls the function get_first_active_display(), but does not check its return value. The return value is a null pointer if the display list is empty. This will lead to a null pointer derefe

[PATCH] drm/amd/display: Add null pointer check in mod_hdcp_hdcp1_create_session()

2025-07-23 Thread Chenyuan Yang
The function mod_hdcp_hdcp1_create_session() calls the function get_first_active_display(), but does not check its return value. The return value is a null pointer if the display list is empty. This will lead to a null pointer dereference. Add a null pointer check for get_first_active_display() an