mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 05:22:19 -04:00
drm/i915/hdmi: return -EINVAL instead of -1
Avoid using the incidental -EPERM. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/8acf7ffe9222d23c7f47dbd95ff1f737221ff72c.1633000838.git.jani.nikula@intel.com
This commit is contained in:
@@ -1703,7 +1703,7 @@ int intel_hdmi_hdcp2_read_msg(struct intel_digital_port *dig_port,
|
||||
drm_dbg_kms(&i915->drm,
|
||||
"msg_sz(%zd) is more than exp size(%zu)\n",
|
||||
ret, size);
|
||||
return -1;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
offset = HDCP_2_2_HDMI_REG_RD_MSG_OFFSET;
|
||||
|
||||
Reference in New Issue
Block a user