Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Conversation

@shivakumar7512
Copy link

cp_downstream_info structure, which is from the kernel(drm_mode.h) having following member,
struct cp_downstream_info {
char bksv[DRM_MODE_HDCP_KSV_LEN];
bool is_repeater;
__u8 depth;
__u32 device_count;
char ksv_list[DRM_MODE_HDCP_KSV_LEN * DRM_MODE_HDCP_MAX_DEVICE_CNT];
};

whereas in the HDCP-daemon, we have 2 more additional members at the beginning of structure such as version and cp_type, passing this structure reference to the memmove will cause incompatible data alignment among the members. So passing the reference of the structure with the index of bksv[0] will solve the bksv values getting displayed as ZERO .

Change-Id: Ia3d88dcbfc8e686eca14994e118d038585a16b5f

Change-Id: Ia3d88dcbfc8e686eca14994e118d038585a16b5f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant