From patchwork Tue May 15 07:58:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 135829 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp668101lji; Tue, 15 May 2018 00:59:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqDPKw8a4PMMdupaeuVtrb9kpAmC0Qkc46l5AuVM5bewDCkLE8p+KOYbrmtBKEMRbTrBCnG X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr13144027pli.137.1526371176782; Tue, 15 May 2018 00:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526371176; cv=none; d=google.com; s=arc-20160816; b=ZqAn7HmM+eAWkG6IF6RtTZmJMBuBCVX3pq7wBB/EHoVbmSvgHhzzxx+BZIbpaTeISe mEBA00bcz2qqePHV6cYHqdcXNjMer3f3Mnt9bOEXLYDa2/YwD1Zv0W+0El15wtJVYHI6 OHsY59nXYhfw0TSOMZ0aiGlPESmSrPM/wKNPVQkYszpTp7v93wZy16R/DG15519M3ZZ5 a2H8gMalj6dYrQGMbiMOAnRnuCY3ZfWo9KXOSALuBBuaiQeAUIAh8BJgjn3SEv39uCEO aaVFykJqnAte6a+y79Y3XKzO1KTESxL5Y3JnksYFlhlnuG9btbZ7QVa/24wOpwh9eVwV uhAQ== 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 a65-v6si1564927pgc.503.2018.05.15.00.59.36; Tue, 15 May 2018 00:59:36 -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 S1752490AbeEOH7d (ORCPT + 29 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(-) -- 2.14.1 Reviewed-by: Tomasz Figa 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;