From patchwork Tue May 15 07:58:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 10400343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 784DF600F4 for ; Tue, 15 May 2018 08:13:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D23322230 for ; Tue, 15 May 2018 08:13:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51F9C27FA3; Tue, 15 May 2018 08:13:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D774522230 for ; Tue, 15 May 2018 08:13:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752219AbeEOH7b (ORCPT ); Tue, 15 May 2018 03:59:31 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33849 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752211AbeEOH73 (ORCPT ); Tue, 15 May 2018 03:59:29 -0400 Received: by mail-wr0-f196.google.com with SMTP id p18-v6so14909367wrm.1 for ; Tue, 15 May 2018 00:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qq5mFuZJ4Yav2DH45SOsMSanfFXAE44rr7On7fvNHsQ=; b=GVho9xOSe3lLm0Hwc5X2NNK+GEQbR6aTbFCtj/2Mx/7rDzZGTV8s0hUtGvbOB9W1wQ ohshyTzj+zW6R+wdHK3t0Gt19sX13xBq+BNL3Bdkc2NK988iexaJLeqErNkWq7qknsBD LGeYn5O5JB+5AKLMqyL3JVQQMe3Gy9i/HwPvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qq5mFuZJ4Yav2DH45SOsMSanfFXAE44rr7On7fvNHsQ=; b=kIfdw5dKFt6Z0vz/vTNHR9CqcRA+c/kaTB5cThNo9r5rSCwrzS1NkrsX5IbvOmCc5U zw2L+QRLGEvMyNtB4Q3wtnyohAXmLPhwEsoFgudYncano+VevQ/R/E9UwUQx9oAYTlH3 DsEJNRibifQwpERbrCb28GyZWRteGqV7+O5w2l+OwsW7xy+EVi3UrydhCGHrbUQ0/UHa tdbvqBzT3kjCRX1A+JIWukkxxF0cBmyxy3sAnyLbKh9hEjaQiQSNCFACO4TWwHVVvV2l hrhtnlqz/xVrSjbaPNBNx81lNw1UleSjm5nwfJ4vcTJB7j3d2uVLvvaD9yYSXr+yTqAW jLkA== X-Gm-Message-State: ALKqPwfz3gpdMBydip/C0yPpxOhHZw/PB7dbHB00oPi6zPWoG/3hs5L6 gthfgPs07gXfCyAJ+EBFRHEtDw== X-Google-Smtp-Source: AB8JxZpvcJ+iAn0YBhdwCkTns5Jm1PTMjlqqkC0cZDyE4Hw2Ttr+dLgqQIgWTeQH/5+v9sCoqNn0Vg== X-Received: by 2002:adf:b352:: with SMTP id k18-v6mr9245607wrd.207.1526371168456; Tue, 15 May 2018 00:59:28 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 4-v6sm10918510wmg.40.2018.05.15.00.59.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 00:59:28 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Stanimir Varbanov Subject: [PATCH v2 01/29] venus: hfi_msgs: correct pointer increment Date: Tue, 15 May 2018 10:58:31 +0300 Message-Id: <20180515075859.17217-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180515075859.17217-1-stanimir.varbanov@linaro.org> References: <20180515075859.17217-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Data pointer should be incremented by size of the structure not the size of a pointer, correct the mistake. Signed-off-by: Stanimir Varbanov Reviewed-by: Tomasz Figa --- drivers/media/platform/qcom/venus/hfi_msgs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/hfi_msgs.c b/drivers/media/platform/qcom/venus/hfi_msgs.c index 90c93d9603dc..589e1a6b36a9 100644 --- a/drivers/media/platform/qcom/venus/hfi_msgs.c +++ b/drivers/media/platform/qcom/venus/hfi_msgs.c @@ -60,14 +60,14 @@ static void event_seq_changed(struct venus_core *core, struct venus_inst *inst, frame_sz = (struct hfi_framesize *)data_ptr; event.width = frame_sz->width; event.height = frame_sz->height; - data_ptr += sizeof(frame_sz); + data_ptr += sizeof(*frame_sz); break; case HFI_PROPERTY_PARAM_PROFILE_LEVEL_CURRENT: data_ptr += sizeof(u32); profile_level = (struct hfi_profile_level *)data_ptr; event.profile = profile_level->profile; event.level = profile_level->level; - data_ptr += sizeof(profile_level); + data_ptr += sizeof(*profile_level); break; default: break;