From patchwork Tue Apr 24 12:44:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 10359627 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A30DD601BE for ; Tue, 24 Apr 2018 12:56:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 954F528DC1 for ; Tue, 24 Apr 2018 12:56:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8999928DC3; Tue, 24 Apr 2018 12:56:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4960628DC1 for ; Tue, 24 Apr 2018 12:56:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933327AbeDXM4X (ORCPT ); Tue, 24 Apr 2018 08:56:23 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36439 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756613AbeDXMpF (ORCPT ); Tue, 24 Apr 2018 08:45:05 -0400 Received: by mail-wm0-f65.google.com with SMTP id n10so607282wmc.1 for ; Tue, 24 Apr 2018 05:45:05 -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=GtSe2znhZup4VKqdR2MHI8Euijtl/+vk/K/4jjoFrYOeM1FJNFZjamTDuYxUpYtBUR HQ86B0ieOwu7r+iMBFqxNTSan9tCjgrRFBTApGFQ7MmyGGqFPAWKZUvOiK/+wQW3M7/K PteVjE6XgZfot8cjWvvqoJ3D07cEIBRAGoQV4= 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=ctHvTA/PYKoVB0Ap5JwCfm9VhJLxvP8u37y5r0SvGgPnFpOh0T6C2YzwMCMZv6TLtE lHYNr/XY5BCuB1i1Tu45+H0JRN+RVkxGBsLGpbk9mdYK2jOsUKj8tgvSbaiAUCnWroRP r5V+XHr2FqOYm1zWXcuqT1n59+by0qkI4BG2AfWuG+Wt0QxyG9VqIo4PWhfCb19Y5tFW lERuBbhOsmKivi0tCUjhVIARDA8pgZpId21e6efK6BFObd99gM/jKdIeOSw15q+KrEng IdazVrHT3oWNDKCmAhvP0W0Dtomyjwtlht7pTVpWhMHt6EZjftGLf01RZ0NTAa1Nxzof CduQ== X-Gm-Message-State: ALQs6tBmNI7y8RTJ1GwuCXGaQPriD5Tvf5LJOpljM/HOdbXPJuifDPV3 Kz1VnrGpgD6jbXj9kfSh6zuS0A== X-Google-Smtp-Source: AIpwx48i75EsV6z7PG18q6w2eibvR+FJ215Oo2aDL0ivixjQuYg/vUlwHaUNIvB3EOkivt0LGlQ4Iw== X-Received: by 10.28.182.70 with SMTP id g67mr12585074wmf.88.1524573904050; Tue, 24 Apr 2018 05:45:04 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id n49-v6sm22666013wrn.50.2018.04.24.05.45.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 05:45: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 , Stanimir Varbanov Subject: [PATCH 01/28] venus: hfi_msgs: correct pointer increment Date: Tue, 24 Apr 2018 15:44:09 +0300 Message-Id: <20180424124436.26955-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180424124436.26955-1-stanimir.varbanov@linaro.org> References: <20180424124436.26955-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;