]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: fsl_lpuart: use kzalloc() instead of kmalloc()
authorFugang Duan <fugang.duan@nxp.com>
Wed, 17 Jul 2019 05:19:28 +0000 (13:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:45 +0000 (12:43 +0200)
commitde190f9d0428964b61a9233c0b9c36bee2a85e04
treecff5b144d7f59f16b6e7b57c40d52e0ac87b49d6
parent784fc544c50ef334424cf3b892673583624fb0a5
tty: serial: fsl_lpuart: use kzalloc() instead of kmalloc()

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