* [PATCH] atm: idt77252: Fix the size used in a 'dma_alloc_coherent()' call
@ 2020-08-02 15:10 ` Christophe JAILLET
0 siblings, 0 replies; 2+ messages in thread
From: Christophe JAILLET @ 2020-08-02 15:10 UTC (permalink / raw)
To: 3chas3
Cc: linux-atm-general, linux-kernel, kernel-janitors, 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 <christophe.jaillet@wanadoo.fr>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] atm: idt77252: Fix the size used in a 'dma_alloc_coherent()' call
@ 2020-08-02 15:10 ` Christophe JAILLET
0 siblings, 0 replies; 2+ messages in thread
From: Christophe JAILLET @ 2020-08-02 15:10 UTC (permalink / raw)
To: 3chas3
Cc: linux-atm-general, linux-kernel, kernel-janitors, 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 <christophe.jaillet@wanadoo.fr>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-02 15:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-02 15:10 [PATCH] atm: idt77252: Fix the size used in a 'dma_alloc_coherent()' call Christophe JAILLET
2020-08-02 15:10 ` Christophe JAILLET
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.