We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c499f6c commit b7c6646Copy full SHA for b7c6646
drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -2044,9 +2044,12 @@ DEFINE_SHOW_ATTRIBUTE(i915_hdcp_sink_capability);
2044
static int i915_lpsp_capability_show(struct seq_file *m, void *data)
2045
{
2046
struct drm_connector *connector = m->private;
2047
- struct intel_encoder *encoder =
2048
- intel_attached_encoder(to_intel_connector(connector));
2049
struct drm_i915_private *i915 = to_i915(connector->dev);
+ struct intel_encoder *encoder;
+
2050
+ encoder = intel_attached_encoder(to_intel_connector(connector));
2051
+ if (!encoder)
2052
+ return -ENODEV;
2053
2054
if (connector->status != connector_status_connected)
2055
return -ENODEV;
0 commit comments