Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp462913yba; Wed, 15 May 2019 04:33:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2uSqkSuV4IXZWXeNSL9RWs8lbOJjDM966iGItwLIlV60BnyHAOf1Wlxfc+RW90K1dqoqf X-Received: by 2002:a63:17:: with SMTP id 23mr43075601pga.206.1557919988933; Wed, 15 May 2019 04:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557919988; cv=none; d=google.com; s=arc-20160816; b=Vkq4sjgAH8ICreVY+qDhJc6DZ9I2GttTzmBwgi2VVa7sK4yPCyykldHsnNsP3ouYIb L8jSsEyCzACN92/bdJJ1uakRmpouDkkp37a6EAgRcP4FMEGIyPM4X6KG3wRa3xPZSCHa Wf8T3W8CtdH8IwPdq4CrA4V1JwE16ggk7I8qnyXAFF3N3VgQdhq2KN5YwpvnhGrStBDI y7radzJ5WmhZiiMCcIY38k0IsMhBydyMhSdzJMpSlVAgq4jby4oi74OCbPHnWfRpbXKh 2kc7gQjrtDmLiFXQGK2LaczsTEKCuZpdczcdkKPLIx2yKgEPhjjb7FMAmQuEqhQvR6gt 9nHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=h1iJcJmt+ELQ81O2V0lpeL/Y+04sO8zUc5PJTU86gAs=; b=JE+BTSD9oKSwksMpTApw2NygX5WyILc+Lf7BtmGuoq9N3uk2qVMKL0Rk2rT1/jZFf/ hflBc6xgjfRZ/E1kShQo8TBx+CReMA8+evZ2d1WbgslplhqsZ9T7MrqyPrDM+2WGt3Ef 37gtDkF3T8gI+0GDcWn93ZnvJvFOm4V2wyym0/1sSgdwjMPXmIKRarp4waWXJqfQO/f/ 0k9oGefgeSDkjv+m6dzREgpOOp0pDqHYXTwguJ6ARF4JFW2MDYcLUAKYG2NDkx0myPmH pScp+fb0V4bivgI3By/BTxJAw+d7KyWMPv28xXQxRwHegXYMpPhVwJKqs71tY3XmdJTg qRIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IFvyisip; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f39si1532040plb.234.2019.05.15.04.32.53; Wed, 15 May 2019 04:33:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IFvyisip; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732673AbfEOLaG (ORCPT + 99 others); Wed, 15 May 2019 07:30:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:41548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732166AbfEOLaF (ORCPT ); Wed, 15 May 2019 07:30:05 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4588D206BF; Wed, 15 May 2019 11:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919804; bh=27o0n0tSSQ4ROIQfDrmsXsWggqIdruEl+279LB0TF+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IFvyisip33+i5RlxfVdAHSm42NKd4XcaIAmqh1nfWWQhwTVOFEL2tklgV/W4kkB8b jt3Q8njUR5SEQ/aIoFDgU3YuhDNTsI2f0fCR+tJvvR7m/vfMIMAEKOz9U89mfBJBr+ EzY/oe3OwSaT9yPecJw7jh1bgwYt5vEzcq9Y//VI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Damian Kos , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.0 100/137] drm/rockchip: fix for mailbox read validation. Date: Wed, 15 May 2019 12:56:21 +0200 Message-Id: <20190515090700.786125615@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit e4056bbb6719fe713bfc4030ac78e8e97ddf7574 ] 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 Signed-off-by: Heiko Stuebner Link: https://patchwork.freedesktop.org/patch/msgid/1542640463-18332-1-git-send-email-dkos@cadence.com Signed-off-by: Sasha Levin --- 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 5a485489a1e23..6c8b14fb1d2f3 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.20.1