Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6502361imm; Wed, 27 Jun 2018 08:38:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ4CvJJ0UNnZOU3tViVfjVD/x6AJ2KPJlOEcW3lGUi62EHp98Rg3lwWYCP5H8ooOzyfD0rX X-Received: by 2002:a17:902:88:: with SMTP id a8-v6mr6524051pla.156.1530113898827; Wed, 27 Jun 2018 08:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530113898; cv=none; d=google.com; s=arc-20160816; b=TObGxsQUwOUL04++1DnWRGvhD9fS8gsTSaCmrpXRy05sNfroqtL/vRE+MrnWJYSrBi wqxHER8ZqMCpNcGISPREIC8c3TIUHRaPlPn/2tAsHAPd84r8twJivSCsKUtOX1p3SXxI M+1MmmZy+Z4XDGGQGBgVy01wUOMh7CrM7PRiBLWUG/RQLOTXZlVbeJaX8VvR8LT1+CS4 IsKwf83bJBSRlppygVyF0xV3H85VJLBaIWU4dXVdCJW5f7dKLzWAQLIRDqC9XMltFhCd ca0QK5lk2y+bhAbztN7oN/48+1ji6HxUdyUPWcokg7s956glvAPNisA5+2dkptxOaJ5E Dqcw== 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 s2-v6si3691467pgd.357.2018.06.27.08.38.04; Wed, 27 Jun 2018 08:38:18 -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 S934887AbeF0Pgq (ORCPT + 99 others); Wed, 27 Jun 2018 11:36:46 -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(-) 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