From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: [PATCH 1/2] bus/dpaa: fix incorrect ccsr mem allocation Date: Thu, 28 Sep 2017 19:40:44 +0530 Message-ID: <20170928141045.21762-1-shreyansh.jain@nxp.com> References: <20170928123000.1711-1-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , Shreyansh Jain To: Return-path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0077.outbound.protection.outlook.com [104.47.38.77]) by dpdk.org (Postfix) with ESMTP id 37D432BA9 for ; Thu, 28 Sep 2017 16:00:01 +0200 (CEST) In-Reply-To: <20170928123000.1711-1-shreyansh.jain@nxp.com> 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: 5ad2d123be48 "(bus/dpaa: introducing FMan configurations)" Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/base/fman/fman.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c index 2c6029e..d0a8ee4 100644 --- a/drivers/bus/dpaa/base/fman/fman.c +++ b/drivers/bus/dpaa/base/fman/fman.c @@ -242,11 +242,11 @@ fman_if_init(const struct device_node *dpa_node) if (!phys_addr) { FMAN_ERR(-EINVAL, "of_translate_address(%s, %p)\n", mname, regs_addr); - __if->ccsr_map = mmap(NULL, __if->regs_size, - PROT_READ | PROT_WRITE, MAP_SHARED, - fman_ccsr_map_fd, phys_addr); goto err; } + __if->ccsr_map = mmap(NULL, __if->regs_size, + PROT_READ | PROT_WRITE, MAP_SHARED, + fman_ccsr_map_fd, phys_addr); if (__if->ccsr_map == MAP_FAILED) { FMAN_ERR(-errno, "mmap(0x%"PRIx64")\n", phys_addr); goto err; -- 2.9.3