From patchwork Wed Jun 27 15:26:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 140357 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1034723ljj; Wed, 27 Jun 2018 08:36:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpflo73Pw+enen9nwv1G/7Xu7xwDzZbAxM/tzgullmYCm9sVdQI4wSrDuft6e4ftm8p9Xso2 X-Received: by 2002:a62:2091:: with SMTP id m17-v6mr6325295pfj.110.1530113810515; Wed, 27 Jun 2018 08:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530113810; cv=none; d=google.com; s=arc-20160816; b=T2xfcNazHBLg9v/+OnNueSfUnX442N1LQ7mdASdl7loQEr7sh+NglyhRxOg0hKTQl4 MhIdnEpJydzcxnoCoNC/b8hcqR9L2nlxIKFWtuUfn/Fot3b8Enhjiw7Nkz6AjfTtHhai cvkP74uZ1MQHNtf8FbqeFo0xEVGx2hnX4rlJ1T0cMxkFqf+SY3zTsKUpVQmL/aOA4DxO AUxLs/DNFy/EsP/yqOl2dD0TOPM1S5Y6J2n2FZyFtTI5KjoX8K98HsiUHHBbJpwf5EOy 2Wu2x2XSm9hT20rcFl6+M9l+yfOzZNDqzUBm0CbPjkeqAZY3w6JwgrGaf2RKfngyWEEa N3Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=g7vPJ6C9yMPpfGQpi9Z8sz0LII9z4TumPUUp9BsvfwU=; b=dfsCa12v8LTfoKxUeEcp31y9Cizy9og5j/O2JV4eDU6NRHZGx1Ea+Q6z2elkwsxCUu BCmHPjTTngbfsUPJAA8+DDLu0AED/To32Q6wqI0MhR8YhcHKJnnRYOP3E4TwCAGBi3wX Ra2W8KEFJjchOw26Tuam53yLOj2D/hGmyAbJdafyWUbgffhAtPqK0fkp3e5hazrgpuTE UGy5GusYLfBYEtUNI5vbXehI0LMUunrSGv1RWCelncwyVX/oF+b9U0LA2vHq0qeE3+wA ozQVOolwyz8YyoPK83URFZK8oq/VANIgulfiogpRSxPwgLh/tEwModP+645lqD9mYmeG PTaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gqbhb9aX; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10-v6si4392298pfh.119.2018.06.27.08.36.50; Wed, 27 Jun 2018 08:36:50 -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=@linaro.org header.s=google header.b=Gqbhb9aX; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934906AbeF0Pgr (ORCPT + 31 others); Wed, 27 Jun 2018 11:36:47 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40593 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934391AbeF0P17 (ORCPT ); Wed, 27 Jun 2018 11:27:59 -0400 Received: by mail-wm0-f65.google.com with SMTP id z13-v6so5958334wma.5 for ; Wed, 27 Jun 2018 08:27:59 -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=g7vPJ6C9yMPpfGQpi9Z8sz0LII9z4TumPUUp9BsvfwU=; b=Gqbhb9aXnJfMO6pKKEt0uRfxI1aVQIrRN5q1Ey1ZrPsYwVjBG/MAHsqP/pJipr9+QL nMDFKNaxNdUSZrVa0HW1cZrhSyAimojk/XJFSUCl//J5fEdYpHH7hZWemYjlLwkiO7vN wt+szt/f/KwK9XSYw3K9aq0FWOaL8RlhHq5R0= 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=g7vPJ6C9yMPpfGQpi9Z8sz0LII9z4TumPUUp9BsvfwU=; b=lOafkUguOFK7pCVQaDq83iu8iRsuCfNXAeiwWlX2GiH15oNN53FZPX1ffdSB/59giG 6EVW/SVFJ3U4gGbok6EEZSb8FccJVx34UAgY22r1JSKfe973VBsBbwEEIrnQ9TGZTlRq 1e14kT32LJrO2/3trbnB8LwiDMz+BZGiVedRi0X3DBHcr20isF+KVGAmGyC7gfFuV3tJ 03Ctm6oos/3MKBrhH0bgbXDHA+5ylS/uOcUTecIlW8PXUgOoAoz6FvMiQ8Sh56FuvOTW pwq2bYPAXBOZ3lvf67JwN1o1/grVRe75q7c/+wmzrSGbdWr5opc2kg2Fzq6756b+BRK+ Qirw== X-Gm-Message-State: APt69E0lxhNRwx9i+4F4Hx1diTPIwZGnxcP5qItGUl7QPT+TVWXeJ509 cYfni8feTu2feN9aE51oPj1eBQ== X-Received: by 2002:a1c:1815:: with SMTP id 21-v6mr5450216wmy.72.1530113278650; Wed, 27 Jun 2018 08:27:58 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id o203-v6sm2916075wmd.30.2018.06.27.08.27.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 08:27:58 -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 , Tomasz Figa , Stanimir Varbanov Subject: [PATCH v4 01/27] venus: hfi_msgs: correct pointer increment Date: Wed, 27 Jun 2018 18:26:59 +0300 Message-Id: <20180627152725.9783-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180627152725.9783-1-stanimir.varbanov@linaro.org> References: <20180627152725.9783-1-stanimir.varbanov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.14.1 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;