Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp272303imm; Tue, 15 May 2018 01:14:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpBT0En2k8bbxUrEr0WkbQT4g6XI2S5LVDhSJCgBMq8VHMlEo9ll89uurMzzr818oIXcpXW X-Received: by 2002:a63:6c04:: with SMTP id h4-v6mr11485986pgc.220.1526372044837; Tue, 15 May 2018 01:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526372044; cv=none; d=google.com; s=arc-20160816; b=TI5tDce5AHtfTE0tt3Kp5S0MvbjifdjfGCJScQtA17utaqDr0SAbiHxJMmvmbU+wRb QRZEQEB9p2wI8SkMCs6AG5Ll+oUV7feR98Z1WHdXMcbybdzTZotC5O5fKlYq7u7DCqau e7rO9/3V8Ct91aXESRDqNx8L1S240i9kfq3S1TtEf7zMdm3TmLeS0z2nbXGOfBb1VV+N XAUMtdRTTwaRjbehoqAuCRKN7gdt4f4S+5v6AqIfcbpM8MxPGDnnDcxlTl/jVffnzdGc 9UYkUklyNNivZcdwg9dXuuioUA5ok+PrLZTtgL7moU09Gcs+TP470sUdZg6P1nGxkGFZ 5o0A== 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=qq5mFuZJ4Yav2DH45SOsMSanfFXAE44rr7On7fvNHsQ=; b=O/3F1omMqE5W0mYx6XGhEHVyFOZicPPot7pOG5yhev5beRin5uasEQpU0QF1sfICGo 2MIo2Ky1P3F1LFYsd0SZCgFJW8l26G453rfVOnEE+805+gbZMO7HYOfnyOYKbgBSimjp jVb819i5dSYVlbistQEX2uap4jok0mmScdw9kqPJ3ceMFY1Khv2ilBkS8MWIFoU51OBO XepSaSjq93be1YAGCjmslawvvyaKDuYC3+BAKGJPuwu94f0yANaP/LbcBCb2GSmH45bj d7Z55uWK18qdv/stuYjYqQd7LeiO4AqyQfBuxPKN5kyLat4Pn9WrtwMhtJLY7rIOH+v/ 6hrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GVho9xOS; 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 a13-v6si11424260pfd.338.2018.05.15.01.13.50; Tue, 15 May 2018 01:14:04 -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=GVho9xOS; 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 S1752488AbeEOH7d (ORCPT + 99 others); Tue, 15 May 2018 03:59:33 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36798 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752188AbeEOH73 (ORCPT ); Tue, 15 May 2018 03:59:29 -0400 Received: by mail-wr0-f193.google.com with SMTP id p4-v6so14929168wrh.3 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=NMqySrqmksJUGrScuex9V+drfJE7DtF1W40T13NTMdKFDypGGmBvFMIfbTf34Ab8DB sFUKABjmH1XWMrNIlBHeOSdQZ8QJjZYJKGp0ZWCl8NvLKY9uuv8vWikjiDfUtHQMQ2r9 1nGOHUVTEKRm+xAHie0BdiLFRXXLKE7p1f/1vKUDhrqF4asfowBKJBPzdYzdfQNWaBky nmyo8Fk/XeOYU9uJLO5LIQwMVf1do9iYhex7BpMfIgVLYzj8Fi8uFGFKvcu7IPlxKTia T2qnnGTrGwqt/pkAxuPZvU1B1ujO0iG5yNDuUZ8kNPE0DOyJYu17rDvbsIvyCxUvNGQc HzjA== X-Gm-Message-State: ALKqPweu6wgXjgnOunk41ML9qpX3MWGs4SL3RD+QIsJWp2pPEy/6PNLn CemZqM8WxFDeJ4WXexXbgnrozw== 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-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 --- 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