Received: by 10.192.165.148 with SMTP id m20csp4620949imm; Tue, 24 Apr 2018 05:56:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ZL4fgr4xYRxcoJMtOOvXfH79MMOC0t3RaFVtQ0OpYceBpFrWYjatFWKjMi512yX3cbslK X-Received: by 2002:a17:902:2947:: with SMTP id g65-v6mr22057706plb.346.1524574610049; Tue, 24 Apr 2018 05:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524574610; cv=none; d=google.com; s=arc-20160816; b=pzrZ/7dx9zgZLD176KJPsrTG0/Gil5Dzah/Pf4GIFa+1ZU7qzzpfvHLRfzy5Ygjvme s/HGueP+yRvHDnN7a55M6D88BbFa1OBxUxmP79E9LJoiSzTBPr7wYCChkcXjLoNHcCqE hJXGbnokkQIrhXpeaUm2eiz0QUQtbADt8Hhytk7qlN9dQTEhKivjkH9lLoXB4oHL5Acy IsIwEbOenykHLa9KM/KFFlDI5KhE0lclfVD4iiNhS25EsOwn/l+JRuxlw9xRd/5kjZQc lD+lKHrOoD0EFU/cFDwQsTo8P4UoFKTtzOk6B1ZQrN1HUeNR+xZxNsa1MTyqBzdl6Tbq Rg0A== 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=SKn3Q/IKxToxxXzYxcCyERVw0KFb9I4nRT5+33S0+7WTMsXs4ibfH0gFPxieVFoyRL ChzXNuz9tTlUgdl2Eydm5QLqSE+Pew8+wXdgKI7SguYvg1sAzCUOyHPy6CP4Lf6v3tps lSNflqetWOQd1ZDDNOUH9wnOR3iU1/WuP0+cZGWjtC8Tq48KLSmh68N1djZWzm/6mYm6 Bq5rX/xbhtjDTq/7iISVFz/ePiB/mAOgAPpztdldENkuSgvqzT4Ed5yOPY6v96GqBw0s Iv4mp+D/L4wcsh0JUPrAuGZ6aThkx9CTnqvdK+VeB7eKsMx7ewtCAV9CtJVT40DSFhge xaZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GtSe2znh; 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 y8-v6si14647791pli.242.2018.04.24.05.56.35; Tue, 24 Apr 2018 05:56:50 -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=GtSe2znh; 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 S932439AbeDXMpL (ORCPT + 99 others); Tue, 24 Apr 2018 08:45:11 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35538 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757842AbeDXMpF (ORCPT ); Tue, 24 Apr 2018 08:45:05 -0400 Received: by mail-wm0-f67.google.com with SMTP id o78so609969wmg.0 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=nN0YwY03YFycJS0KFc8cO3KKfaIxlrhxsXWi0PPuVCsWFnN6I0yd3A+SbEXEipWcKe pEL2p2UnnZUgBJBaXVjYulFV8jnGBAiBR39S21FQn5eoVeCg4pGnC7sWr2kQ8jkmXBoe KbH8roQJGvpC0hTT8158SJaZUa7s8w2MNV345r3Tso1H7Bs/m+4j0lPmy8je92bgburQ sfpeO0G3xBSZ4FlCB4oCWY3ohfhm2HOmCeVSqdg+aQ4ktCiCd9qPv2BICxcylifPTVxC XtKT0XC2l56geLocTJ7IzAp8utdplkA8/JJckrqaDgPOV0HZNK/7N9ohQqBFFIhM1owh fx/w== X-Gm-Message-State: ALQs6tCHErl0fOll38f4ewgZPj2FpkPe/pBaZKO3KqgKUds3fN9jm68x 3JE+P0yky9rM/vtpvxBhAWBolA== 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-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