From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9991C433DF for ; Sun, 2 Aug 2020 15:11:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF3AF20759 for ; Sun, 2 Aug 2020 15:11:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726534AbgHBPLD (ORCPT ); Sun, 2 Aug 2020 11:11:03 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:36575 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbgHBPLD (ORCPT ); Sun, 2 Aug 2020 11:11:03 -0400 Received: from localhost.localdomain ([93.22.148.198]) by mwinf5d42 with ME id AfB02300F4H42jh03fB1mg; Sun, 02 Aug 2020 17:11:01 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 02 Aug 2020 17:11:01 +0200 X-ME-IP: 93.22.148.198 From: Christophe JAILLET To: 3chas3@gmail.com Cc: linux-atm-general@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] atm: idt77252: Fix the size used in a 'dma_alloc_coherent()' call Date: Sun, 2 Aug 2020 17:10:59 +0200 Message-Id: <20200802151059.699977-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This should be TSQSIZE in order to be consistent with the surrounding code and the corresponding 'dma_free_coherent()' in 'deinit_tsq()' This is harmless because RSQSIZE and TSQSIZE have the same value (i.e. 8192) Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET --- drivers/atm/idt77252.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index df51680e8931..f459fafa902a 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c @@ -1373,7 +1373,7 @@ init_tsq(struct idt77252_dev *card) { struct tsq_entry *tsqe; - card->tsq.base = dma_alloc_coherent(&card->pcidev->dev, RSQSIZE, + card->tsq.base = dma_alloc_coherent(&card->pcidev->dev, TSQSIZE, &card->tsq.paddr, GFP_KERNEL); if (card->tsq.base == NULL) { printk("%s: can't allocate TSQ.\n", card->name); -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe JAILLET Date: Sun, 02 Aug 2020 15:10:59 +0000 Subject: [PATCH] atm: idt77252: Fix the size used in a 'dma_alloc_coherent()' call Message-Id: <20200802151059.699977-1-christophe.jaillet@wanadoo.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: 3chas3@gmail.com Cc: linux-atm-general@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET This should be TSQSIZE in order to be consistent with the surrounding code and the corresponding 'dma_free_coherent()' in 'deinit_tsq()' This is harmless because RSQSIZE and TSQSIZE have the same value (i.e. 8192) Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET --- drivers/atm/idt77252.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index df51680e8931..f459fafa902a 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c @@ -1373,7 +1373,7 @@ init_tsq(struct idt77252_dev *card) { struct tsq_entry *tsqe; - card->tsq.base = dma_alloc_coherent(&card->pcidev->dev, RSQSIZE, + card->tsq.base = dma_alloc_coherent(&card->pcidev->dev, TSQSIZE, &card->tsq.paddr, GFP_KERNEL); if (card->tsq.base = NULL) { printk("%s: can't allocate TSQ.\n", card->name); -- 2.25.1