mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
drm/rockchip: dw-dp: fix alignment fault when memory copy
the dst is device memory, when accessing dst, it need alignment, use memcpy_toio instead of memcpy. Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com> Change-Id: Ie761ac1660ef841b44bc835671b7f9bd6a0f66e4
This commit is contained in:
parent
c4aebfded9
commit
feaa0f093e
|
|
@ -511,7 +511,7 @@ static int dw_dp_hdcp_init_keys(struct dw_dp *dp)
|
|||
if (!base)
|
||||
return -ENOMEM;
|
||||
|
||||
memcpy(base, hdcp_vendor_data, size);
|
||||
memcpy_toio(base, hdcp_vendor_data, size);
|
||||
|
||||
res = sip_hdcp_config(HDCP_FUNC_KEY_LOAD, dp->id ? DP_TX1 : DP_TX0, 0);
|
||||
if (IS_SIP_ERROR(res.a0)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user