From patchwork Wed Jun 13 15:07:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 138479 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp847272lji; Wed, 13 Jun 2018 08:09:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI2V6mAAoji9qUmfyhr9MK1t+S3FuYM7cIoRdGgsYddyvCpAmQwfnahjRgf7+xe6c/w+NMJ X-Received: by 2002:a17:902:585c:: with SMTP id f28-v6mr5615381plj.206.1528902549271; Wed, 13 Jun 2018 08:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528902549; cv=none; d=google.com; s=arc-20160816; b=hJw2gifIm68B6hoW5trccUQy/EF40cGQhR/mvUxUmP+fsORj/F1rTQ4tuGIoPn2xfk sYKzNkNtAnOucswGyAgxt4TiTAM80IjLeHr0VxMF3N5esbDPiI8fWWnZ+pnVikgqjdmL 6lj0hwgRlyuJ+xy0rsQou/j9/nCdc7GBslmm3usBHFygR4u2s+54tHUT+YtzBoi+6gM3 NPFcv7bEzpZSsPtxDb4U2R/jVUe04h9k4P5FarL2Zk0VPdgVfONw0d05d5MkDsBQLVZm zrV5nDNcOtPVOhdeYVYFTl2AY3V+YS7eD/Aced5G5pVnKwiUteJy1UHoVjnqRHvTr5Cy meFQ== 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=zWIXuFkac4XIPglYFrQ/SrpYXgPSrAnZ06JJt04Q6NHuqtBPmGXP8ty4xAgZU5XN/8 HzrLHPxQPpVlWLpVZ2W1fqsasL9lZnPjQiTFwCCjHIymkWqJ7PCvKGdiLSA6sy8fotHP HhnSLTaMWj3ynH856nIsdXvFTDZcHOV6g+ab9XdK5k63gFTEZPPycmssBZKRiL08MhtJ Q8YmhsGTPPlkq/6Y/N0q5GOjEpr+7EvY/oHEiKW1twvjqo7EoVokQ0l7uu6lsvx5Vlbg itC1VXZnpk07WecB3leLnVin7lHE0dbLI3Xt7tBBEhY2En5bPID+3wLt4il1GTEwfJln vYfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="b/o8iHMu"; 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 j84-v6si3027175pfj.79.2018.06.13.08.09.08; Wed, 13 Jun 2018 08:09:09 -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="b/o8iHMu"; 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 S935935AbeFMPJH (ORCPT + 30 others); Wed, 13 Jun 2018 11:09:07 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34311 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935694AbeFMPJE (ORCPT ); Wed, 13 Jun 2018 11:09:04 -0400 Received: by mail-wr0-f194.google.com with SMTP id a12-v6so3163156wro.1 for ; Wed, 13 Jun 2018 08:09:04 -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=b/o8iHMunGPtkbYsi84qKwhpRvA7FlRf0zIU5ZBlR9ixNFKvIdQl1fozVAdMeE/MOf eDgMGQEgCYSUay6r8SNSxmdiChMvgNP9QFi0W4pJ2C3y1T66gl9ZIWBtcrb0HAgK4zLX Tg3YzTu+5GYuxFRmN6V2Br/i76ni2tgZvIy2U= 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=erOmqK1eOkPaacBWt3VT1bxJhrLEUsLov682IcVkoNuCYdwEZPraf4Mfx6LwpD1BSN tizTRXpr2nduaO5x7CLOD4LO3x4i7l6ouPmygBQa/uPKQ8LT968js0BorJeD5/jGX6tH s3gUOP0zhkdOvKeFbTUqGop6DCUNjbiWcI+ey5FjlLjJNPF5WQhk2LXg0R/xCLDXZQ1L kVyrtVFvGAWf4w91RLP2ppYW7qbJXe5uAejJ5gwjNiOTuAfF4Hql2Od1W2/zMZubUMem 0M3PlHAwdBWxth+EPEqrrAj/Z4Sb68WBIAz7rfCJMtze29OWWwt1DBQpV9BUkHlDmOuK z1xQ== X-Gm-Message-State: APt69E3QXlokTcHse0MFc52PPi6W2o4rYV28FJjHkaJtHqiBpH44dZFm zb4Ezzm7SWtv8LghKRHm1fiddA== X-Received: by 2002:adf:ee0e:: with SMTP id y14-v6mr4439491wrn.63.1528902543885; Wed, 13 Jun 2018 08:09:03 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id e13-v6sm2886548wrm.45.2018.06.13.08.09.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 08:09:03 -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 v3 01/27] venus: hfi_msgs: correct pointer increment Date: Wed, 13 Jun 2018 18:07:35 +0300 Message-Id: <20180613150801.11702-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180613150801.11702-1-stanimir.varbanov@linaro.org> References: <20180613150801.11702-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;