[Intel-gfx] [PATCH v2] drm/i915/debugfs: HDCP capability enc NULL check

2021-02-11 Thread Anshuman Gupta
DP-MST connector encoder initializes at modeset Adding a connector->encoder NULL check in order to avoid any NULL pointer dereference. intel_hdcp_enable() already handle this but debugfs can also invoke the intel_{hdcp,hdcp2_capable}. Handling it gracefully. v2: - Use necessary lock and NULL

Re: [Intel-gfx] [PATCH v2] drm/i915/debugfs: HDCP capability enc NULL check

2021-02-11 Thread Imre Deak
On Thu, Feb 11, 2021 at 11:59:49AM +0530, Anshuman Gupta wrote: > DP-MST connector encoder initializes at modeset > Adding a connector->encoder NULL check in order to > avoid any NULL pointer dereference. > intel_hdcp_enable() already handle this but debugfs > can also invoke the

[Intel-gfx] [PATCH v2] drm/i915/debugfs: HDCP capability enc NULL check

2021-02-10 Thread Anshuman Gupta
DP-MST connector encoder initializes at modeset Adding a connector->encoder NULL check in order to avoid any NULL pointer dereference. intel_hdcp_enable() already handle this but debugfs can also invoke the intel_{hdcp,hdcp2_capable}. Handling it gracefully. v2: - Use necessary lock and NULL