projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a0e92
)
tty: serial: fsl_lpuart: use kzalloc() instead of kmalloc()
author
Fugang Duan
<fugang.duan@nxp.com>
Wed, 17 Jul 2019 05:19:28 +0000
(13:19 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:45 +0000
(12:43 +0200)
Use kzalloc() instead of kmalloc() to get clean rx buffer
that is useful for DMA mode debug to check the data moving
validity.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Link:
https://lore.kernel.org/r/20190717051930.15514-4-fugang.duan@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/fsl_lpuart.c
b/drivers/tty/serial/fsl_lpuart.c
index
7bc3047
..
746681b
100644
(file)
--- a/
drivers/tty/serial/fsl_lpuart.c
+++ b/
drivers/tty/serial/fsl_lpuart.c
@@
-1097,7
+1097,7
@@
static inline int lpuart_start_rx_dma(struct lpuart_port *sport)
if (sport->rx_dma_rng_buf_len < 16)
sport->rx_dma_rng_buf_len = 16;
- ring->buf = k
m
alloc(sport->rx_dma_rng_buf_len, GFP_ATOMIC);
+ ring->buf = k
z
alloc(sport->rx_dma_rng_buf_len, GFP_ATOMIC);
if (!ring->buf)
return -ENOMEM;