Re: [PATCH 1/2] tty: serial: fsl_lpuart.c: prevent a bad shift operation

2020-07-21 Thread Greg Kroah-Hartman
On Tue, Jul 21, 2020 at 10:43:11PM +0530, B K Karthik wrote: > prevent a bad shift operation by verifying that > sport->rx_dma_rng_buf_len is non zero. > > Signed-off-by: B K Karthik > --- > drivers/tty/serial/fsl_lpuart.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) What about set

[PATCH 1/2] tty: serial: fsl_lpuart.c: prevent a bad shift operation

2020-07-21 Thread B K Karthik
prevent a bad shift operation by verifying that sport->rx_dma_rng_buf_len is non zero. Signed-off-by: B K Karthik --- drivers/tty/serial/fsl_lpuart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 7ca6