Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp621583imm; Thu, 5 Jul 2018 06:16:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfuqBoMpnD6pAsxTpvb23uZ/44zSUCdro/gk9kSCs4MwWO0rndhgAJ2kRHOLOhyV+VRjgP0 X-Received: by 2002:a62:b29c:: with SMTP id z28-v6mr6499397pfl.8.1530796599024; Thu, 05 Jul 2018 06:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530796598; cv=none; d=google.com; s=arc-20160816; b=hPYVgix3H15GcOd1LelAVcetxQyMqnv0Br8IpFYmw+BqSQcfa8MbMu0Hr8lM/TYIDO JAqUEfqAUqT7XDq8zvlr96R1SjYE0zSXsEFaAqXwp11/rNs/KFvldIsgeStTgKUffOsi CjHufyLd8IQ8cUPVpHPpB2JSfmPCBTMkOv66to08aPb4m4mWhFjNhzkgYZFoYvgTfP9R ylIiYA9Ufz4Htx71lp4Lv4J2mKzeoEHPFjsaZkEjzk1hHA0GX3Q6+q4AyYn4x3XptwOc 2A9LpZi38ux27I8lSAum8yeXpMCOpicgkToF2Uiri4zeprISbsdK76wbiECSwITLuwRc macA== 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=trWju4h1j1F0uUK8c+3wqba2dGro6cz0fsCPicYF1XtHQM/uoUGKrof/bvvbUH9D4V C7CiX4zTg+a9Luxhe91Xc24pKj7nGnogAsRKbgWDeFLLvZiJXB0OOztEolLEmJzlyJIr TZUa7l8WduVO4JhcY1iOgG8iB9iqQgifPMf1IhRrfp46+r0/iSbkDCiqg8Lmso62NVa3 h/Tmkh9gAaydY87o+jVsypCTYnxMtYDemcfa23P4llns7dzRmMo6WlP5lNNYUYJ21NTF skWPvYvth2mvJMkyC0mmTbAjNCTYZPq3WJFRWgOQ6Ju5VvEqqbnDTAx2ffkHpLsDL7i+ frvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HbLROi+4; 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 d65-v6si5695281pgc.524.2018.07.05.06.16.23; Thu, 05 Jul 2018 06:16:38 -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=HbLROi+4; 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 S1754259AbeGENFN (ORCPT + 99 others); Thu, 5 Jul 2018 09:05:13 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54988 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754172AbeGENFI (ORCPT ); Thu, 5 Jul 2018 09:05:08 -0400 Received: by mail-wm0-f65.google.com with SMTP id i139-v6so10960233wmf.4 for ; Thu, 05 Jul 2018 06:05:07 -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=HbLROi+4L0Sw6tgE44gsvKRAAmatlQ8sr/4qOvqYuxgj4yiTm7tmGvzdhPNOCWrwRZ ZiFJxmFclw9ALZPOZANCgljlrMye3QwFzLDGdm4t1bzSR82ozeUz2LRedNy0a5ZVOC63 wlBuW+5pgeOPsfRKsbusJY+/B0iDn2bnjUFyY= 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=nQ+idHP+OQ9EUAh3SS2+Psm9nvtpv1McpjovctZYb8VcZmtT57o21kPexamUpXTWW4 ezAUxfWjOCdHR/3+OdNIW3qXrPumhZr/UImFCYVkmrJiCRU44sNOWDzm+k9mJ09bKaae YghOMSx+ZJyiAfshmcFO+ZzUCN90uDyF1ZbW4tcanrTJMi6CxY6EDhkm5+UpW2t2kRAP U3/1zjHICsxw3QML6nL4+DIsRp5M9YHj90BQQc+/LO87ixT0dmzK82CM50fmpgJjZ8Aq 6S+xwl+z6jhDKMVaJTuXL05OIzj5BjJ2xoEmxrfzlNFVGTa/L2U3pyjQ2HKZhJFHgQdx uspQ== X-Gm-Message-State: APt69E2IjwP3yd0r1plz0hN9h5ZmztR8i9MzVqTwWnXFZeR86OCll7rj bxlJ5swiaOMpmS/STlSVEfQ6AQ== X-Received: by 2002:a1c:15ce:: with SMTP id 197-v6mr3807155wmv.99.1530795907043; Thu, 05 Jul 2018 06:05:07 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 11-v6sm2109102wrw.67.2018.07.05.06.05.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 06:05:06 -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 , Alexandre Courbot , Stanimir Varbanov Subject: [PATCH v5 01/27] venus: hfi_msgs: correct pointer increment Date: Thu, 5 Jul 2018 16:03:35 +0300 Message-Id: <20180705130401.24315-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180705130401.24315-1-stanimir.varbanov@linaro.org> References: <20180705130401.24315-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