From patchwork Thu Jul 5 13:03: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: 141120 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1918392ljj; Thu, 5 Jul 2018 06:05:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe9Ep4F3RyrBeR58JCvVpJwNKofxs9hgDet2yjarnquGKTnD7kT6gIVdszLtxvOMStLvEQ4 X-Received: by 2002:a63:175b:: with SMTP id 27-v6mr2428409pgx.31.1530795916504; Thu, 05 Jul 2018 06:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530795916; cv=none; d=google.com; s=arc-20160816; b=UaDBN7qFiz8X6yFIP+qwh1N5UrpWxExnIKLmI5b9rTsew5bJ0rVdgbEoagaT2UmkKI N6995eoNOinT6IflJdd9LdQ4tB0lNCYdnrcqcHHhzcKokM2FMdWiNrdjljYIwjLzQpcm QL1ZNVvfR6Nl6XOkqNoT+7AZZpztKxYttu7IArq8QivcOKfHZ8cx3HTtCPDThepO5BY5 /uOQ4O4tbKu8qThMObczPRp0aFJAfyElBYtTjgXf6HrDOZNQJGuzvtB528F4/Anf3H7O HSno6p2MOd/siW/TW98RP63Aalm3atMVAQr57INZyM5f5IayGFaIo3luVEWIrUbHnoF0 +mLw== 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 a10-v6si6165265pln.349.2018.07.05.06.05.16; Thu, 05 Jul 2018 06:05:16 -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 S1754287AbeGENFN (ORCPT + 31 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(-) -- 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;