linux-rockchip.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/rockchip: fix for mailbox read validation.
@ 2018-11-19 15:14 Damian Kos
  2019-01-28 10:17 ` Heiko Stuebner
  0 siblings, 1 reply; 2+ messages in thread
From: Damian Kos @ 2018-11-19 15:14 UTC (permalink / raw)
  To: Chris Zhong, Heiko Stuebner, Sandy Huang, David Airlie,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: Damian Kos

This is basically the same fix as in
commit fa68d4f8476b ("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: Damian Kos <dkos-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org>
---
 drivers/gpu/drm/rockchip/cdn-dp-reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
index 5a485489a1e2..6c8b14fb1d2f 100644
--- a/drivers/gpu/drm/rockchip/cdn-dp-reg.c
+++ b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
@@ -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,
 					   u8 module_id, u8 opcode,
-					   u8 req_size)
+					   u16 req_size)
 {
 	u32 mbox_size, i;
 	u8 header[4];
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/rockchip: fix for mailbox read validation.
  2018-11-19 15:14 [PATCH] drm/rockchip: fix for mailbox read validation Damian Kos
@ 2019-01-28 10:17 ` Heiko Stuebner
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stuebner @ 2019-01-28 10:17 UTC (permalink / raw)
  To: Damian Kos
  Cc: David Airlie, dri-devel, linux-kernel, linux-rockchip,
	Chris Zhong, linux-arm-kernel

Am Montag, 19. November 2018, 16:14:14 CET schrieb Damian Kos:
> This is basically the same fix as in
> commit fa68d4f8476b ("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: Damian Kos <dkos@cadence.com>

forgot that patch in my inbox somehow ... applied to drm-misc-next now

Thanks
Heiko


_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-28 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-19 15:14 [PATCH] drm/rockchip: fix for mailbox read validation Damian Kos
2019-01-28 10:17 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).