Commit e4056bbb authored by Damian Kos's avatar Damian Kos Committed by Heiko Stuebner

drm/rockchip: fix for mailbox read validation.

This is basically the same fix as in
commit fa68d4f8 ("drm/rockchip: fix for mailbox read size")
but for cdn_dp_mailbox_validate_receive function.

See patchwork.kernel.org/patch/10671981/ for details.
Signed-off-by: default avatarDamian Kos <dkos@cadence.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1542640463-18332-1-git-send-email-dkos@cadence.com
parent ce6912b4
...@@ -113,7 +113,7 @@ static int cdp_dp_mailbox_write(struct cdn_dp_device *dp, u8 val) ...@@ -113,7 +113,7 @@ static int cdp_dp_mailbox_write(struct cdn_dp_device *dp, u8 val)
static int cdn_dp_mailbox_validate_receive(struct cdn_dp_device *dp, static int cdn_dp_mailbox_validate_receive(struct cdn_dp_device *dp,
u8 module_id, u8 opcode, u8 module_id, u8 opcode,
u8 req_size) u16 req_size)
{ {
u32 mbox_size, i; u32 mbox_size, i;
u8 header[4]; u8 header[4];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment