Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4257694imm; Fri, 18 May 2018 01:58:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZos442wcHyRxHmQv/OWqRFKNK8GM9OD8UoHVS2yCYIPmvA4W+fa3Ia4c7O99qfs/lzrrM3Q X-Received: by 2002:a62:4651:: with SMTP id t78-v6mr8595214pfa.46.1526633921812; Fri, 18 May 2018 01:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526633921; cv=none; d=google.com; s=arc-20160816; b=Mfjs0eQSr5K6Ni4G5d877rxcFZ5PCzZel3cfhSW8M3/RxIL+ElLH9p+53ZhqBHuboc Hxj8URfF6oxaF4HtsbSbGqeKSk8aPtLe1R/30cnzEkk4lnuZYNT2Ijfi0i79qntBhPAG mJNYBXXoOCUGF9w4+XMbn4oDt8MJqrTBcsdguzTc9Q8WMXf8iLCo+BCwUPH8vDyYshyu Xud5Yi9ZSzaXnk7Oc61QjHpTykPAvk33dSRQY0+Pw0660kpzX6Tg4hLY7OWRUp5O++DD ps2tp9Nicq8ajxdlATAjQNqdVlmpm7/Iq0nGkOQDLYQeCLs34fKEZXUN2rOPhIwYJsfN LCPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=NQNS45NmJ0l9/mHRo7gjEauLKisdPbDbilPSnnvYVXo=; b=X6x920M0GSGOznXkviVElLgs90ZaolO7TpLyxXfyw/bO0coXwZjcgKzEuxW4e2RgYq s3MFEAugSfp7FpdqIHHTONDksp/sDGoWQszLXxSBfYqVPEp20sqhCSg2sKfwIFfK3qoa I5w+poz/7dP+lhksWqOk71MPzk28CgZu7hNkfxOGj1xLRSq3NTKhOJ6zz1ggoCoAqNmP BbtAAx74zWFbCSZgcrQc3WnNxn1UrnV960YB/A3DehqpgTaFl5nIXx7J5i1VbnJXE0/0 i1EeltkO3tLVSfx2877JZxiNbQjUvIWArjoge7re118Qbj18KEGSX+FYIIXN/2h530nx kQ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AnrsITsX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24-v6si7077357pfr.242.2018.05.18.01.58.27; Fri, 18 May 2018 01:58:41 -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=@chromium.org header.s=google header.b=AnrsITsX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753382AbeERI5Y (ORCPT + 99 others); Fri, 18 May 2018 04:57:24 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:36135 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221AbeERI5U (ORCPT ); Fri, 18 May 2018 04:57:20 -0400 Received: by mail-ua0-f193.google.com with SMTP id b25-v6so4873904uak.3 for ; Fri, 18 May 2018 01:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NQNS45NmJ0l9/mHRo7gjEauLKisdPbDbilPSnnvYVXo=; b=AnrsITsX+ZC0YoxB+IBThm9Xcvi0JGq0ei8Jpl1YFg9XpzrYtcIv2zPShLFOkfNo+N MuevUf2ZjJ203FFPKv6D+WUx0tZFYgLdVvXI0iCBk7YLf4S0HSZoaGQZB8NjLLt+2K8b UYsP8mFEsn2UJTzOJsZfsF0JcTiGxJnnvRpjE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NQNS45NmJ0l9/mHRo7gjEauLKisdPbDbilPSnnvYVXo=; b=peuw3uQ1SqGcfzNoUsKWqoUjSHB3p5xQ8gtSQysy4yvhs6BrrVBEj8WV96IXlvr73j iEmsEl+920QZyUaznyPcNlj1AYcBXyuTYoO7GfYGdIRzk1dWticJBDUtWtpEI13pULIj 6DeZhQNKLVt2OARCPGi6sTFuuw129pSK2GECMoG2cb2tZItm//CjZskPQcfqSbTXZfcC KkAOER8NOfQtlm5Mlo68GBWfDzIl/bYOGSHr5Lmxh/qnaGh3jIMXkMCYOzcD6ySyrpI8 9Z26rz9hfzHE/Q2Mp9gVp3wBvIaQuBh6jXoFyPXAJvUBuUbhlyC1NKSI7Gvcn0UsEqh3 DLwg== X-Gm-Message-State: ALKqPwcFwt+y0GD6ptbb2kBdDT7+qrH/ZSlqVmOEpydgqAlE87q1qYqY HT3I6va6X4JOSkFf0xPLaAVkYz2oOIk= X-Received: by 2002:ab0:1112:: with SMTP id e18-v6mr7030989uab.78.1526633839633; Fri, 18 May 2018 01:57:19 -0700 (PDT) Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com. [209.85.213.47]) by smtp.gmail.com with ESMTPSA id u31-v6sm1755082uau.53.2018.05.18.01.57.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 01:57:18 -0700 (PDT) Received: by mail-vk0-f47.google.com with SMTP id i190-v6so4364269vkd.13 for ; Fri, 18 May 2018 01:57:18 -0700 (PDT) X-Received: by 2002:a1f:394b:: with SMTP id g72-v6mr6506315vka.97.1526633838183; Fri, 18 May 2018 01:57:18 -0700 (PDT) MIME-Version: 1.0 References: <20180515075859.17217-1-stanimir.varbanov@linaro.org> <20180515075859.17217-2-stanimir.varbanov@linaro.org> In-Reply-To: <20180515075859.17217-2-stanimir.varbanov@linaro.org> From: Tomasz Figa Date: Fri, 18 May 2018 17:57:06 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 01/29] venus: hfi_msgs: correct pointer increment To: Stanimir Varbanov Cc: Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , vgarodia@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 5:13 PM Stanimir Varbanov < stanimir.varbanov@linaro.org> wrote: > Data pointer should be incremented by size of the structure not > the size of a pointer, correct the mistake. > Signed-off-by: Stanimir Varbanov > --- > 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; > -- > 2.14.1 (Posted to v1 originally, since I missed v2.) Reviewed-by: Tomasz Figa Best regards, Tomasz