From patchwork Tue Jan 24 10:49:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matej Vido X-Patchwork-Id: 19938 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 3E7B45911; Tue, 24 Jan 2017 11:50:22 +0100 (CET) Received: from office2.cesnet.cz (office2.cesnet.cz [195.113.144.244]) by dpdk.org (Postfix) with ESMTP id 1C53358CB for ; Tue, 24 Jan 2017 11:50:20 +0100 (CET) Received: from pcvido.fit.vutbr.cz (unknown [IPv6:2001:67c:1220:80c:f8f4:f055:211e:fe80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id 8C0CE200D2 for ; Tue, 24 Jan 2017 11:50:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=office2; t=1485255020; bh=RwgJiXFk6102vOigRmLxbGR5K4RbHptkM4fP6JuZINc=; h=From:To:Subject:Date; b=fC+O3ePEy0PmGI9t/ydmwqJBXwrV0plcdMyfoikCFh8Om7l+0rIKUOY4VNqid1F48 4it0VI47xOmlR9V4TfIGq6Z+9m5cjeymg1jdwz90yUBY9Esbj/2t01qUS/cSKPZust MRoRI6G6BJjT/VKdvpZ3nt6bLRU2yyykJ+AS6hKo= From: Matej Vido To: dev@dpdk.org Date: Tue, 24 Jan 2017 11:49:52 +0100 Message-Id: <1485254992-12545-1-git-send-email-vido@cesnet.cz> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] net/szedata2: fix incorrect device memory access X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: 8acba705b119 ("net/szedata2: localize handling of PCI resources") Signed-off-by: Matej Vido Reviewed-by: Ferruh Yigit Reviewed-by: Ferruh Yigit --- drivers/net/szedata2/rte_eth_szedata2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.h b/drivers/net/szedata2/rte_eth_szedata2.h index b58adb6..afe8a38 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.h +++ b/drivers/net/szedata2/rte_eth_szedata2.h @@ -192,7 +192,7 @@ struct szedata { } #define SZEDATA2_PCI_RESOURCE_PTR(rsc, offset, type) \ - ((type)((uint8_t *)(rsc)->addr) + (offset)) + ((type)(((uint8_t *)(rsc)->addr) + (offset))) enum szedata2_link_speed { SZEDATA2_LINK_SPEED_DEFAULT = 0,