From patchwork Wed Sep 3 17:04:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 36629 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f70.google.com (mail-qg0-f70.google.com [209.85.192.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 053CB202E4 for ; Wed, 3 Sep 2014 17:04:47 +0000 (UTC) Received: by mail-qg0-f70.google.com with SMTP id i50sf26669234qgf.1 for ; Wed, 03 Sep 2014 10:04:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:subject:date :message-id:cc:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=E5uDwaf4Mj2kHjsQiNhnr3rM9Lp6cOEGM5/H6yClQCY=; b=Vkgs+PB139pijJaEpE6IU030G4mgLs33O/fWLnfmcASyMtcv2CB58um7kTJdulBzwd XMYS2aKt9d9Bdh1wTeTkMxVuhNzfRzgC0d0n/u38FkbMybpTcP8S8Fy48eUQt3nNhED6 zWvSg6x/+gAxcaoBXzRUtFUZaDG0bU6Shsa3TUUhZkk2ADdcPgqB32OUN+3IeYes1QK6 UVl6WBCY0uZ3jQN8eylrPJf9urNV/aBbP9ccTfqf3TkBslDZ68PmZu9cId66E5iL7hEo y1Fd+y7JuOZG/8tpIj78Tnrfw6ics5hMofztCZa8lMtuZzMYy0/ZSShvTztOqZXM5+Gk ApmA== X-Gm-Message-State: ALoCoQkeYfpWvZcHjbW3XTLeAA+yskaccFbHcc1hO10Z47ow+ILaFC2bSqgm+FPXTAsSJISvwkwe X-Received: by 10.224.21.129 with SMTP id j1mr23627833qab.7.1409763886787; Wed, 03 Sep 2014 10:04:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.6 with SMTP id t6ls2989344qge.32.gmail; Wed, 03 Sep 2014 10:04:46 -0700 (PDT) X-Received: by 10.220.105.142 with SMTP id t14mr1771069vco.14.1409763886567; Wed, 03 Sep 2014 10:04:46 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id t9si4011095vcy.1.2014.09.03.10.04.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 10:04:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id im17so9192029vcb.32 for ; Wed, 03 Sep 2014 10:04:46 -0700 (PDT) X-Received: by 10.52.73.202 with SMTP id n10mr1163367vdv.86.1409763886497; Wed, 03 Sep 2014 10:04:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp711163vcb; Wed, 3 Sep 2014 10:04:46 -0700 (PDT) X-Received: by 10.70.91.101 with SMTP id cd5mr32749267pdb.130.1409763885696; Wed, 03 Sep 2014 10:04:45 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id ox4si12509411pdb.7.2014.09.03.10.04.45 for ; Wed, 03 Sep 2014 10:04:45 -0700 (PDT) Received-SPF: none (google.com: dri-devel-bounces@lists.freedesktop.org does not designate permitted sender hosts) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B60A388EBA; Wed, 3 Sep 2014 10:04:43 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by gabe.freedesktop.org (Postfix) with ESMTP id 7107F88EBA for ; Wed, 3 Sep 2014 10:04:41 -0700 (PDT) Received: by mail-wi0-f180.google.com with SMTP id ex7so10263796wid.1 for ; Wed, 03 Sep 2014 10:04:40 -0700 (PDT) X-Received: by 10.180.98.97 with SMTP id eh1mr5543132wib.14.1409763880645; Wed, 03 Sep 2014 10:04:40 -0700 (PDT) Received: from lmenx321.st.com. (lya72-2-88-175-155-153.fbx.proxad.net. [88.175.155.153]) by mx.google.com with ESMTPSA id ec2sm5667702wib.19.2014.09.03.10.04.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 10:04:40 -0700 (PDT) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH] drm: sti: do not iterate over the info frame array Date: Wed, 3 Sep 2014 19:04:20 +0200 Message-Id: <1409763860-4641-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: Benjamin Gaignard X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: benjamin.gaignard@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 avi infoframe is a 13 bytes array, do not read after this limite. Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/sti/sti_hdmi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index 284e541..90ee20a 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.c +++ b/drivers/gpu/drm/sti/sti_hdmi.c @@ -298,7 +298,6 @@ static int hdmi_avi_infoframe_config(struct sti_hdmi *hdmi) hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD2(HDMI_IFRAME_SLOT_AVI)); val = frame[0xC]; - val |= frame[0xD] << 8; hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD3(HDMI_IFRAME_SLOT_AVI)); /* Enable transmission slot for AVI infoframe