Re: [PATCH] USB: serial: f81534: fix division by zero on line-speed change
From: Greg KH
Date: Wed Nov 30 2022 - 06:09:37 EST
On Tue, Nov 29, 2022 at 03:18:19PM +0100, Johan Hovold wrote:
> The driver leaves the line speed unchanged in case a requested speed is
> not supported. Make sure to handle the case where the current speed is
> B0 (hangup) without dividing by zero when determining the clock source.
>
> Fixes: 3aacac02f385 ("USB: serial: f81534: add high baud rate support")
> Cc: stable@xxxxxxxxxxxxxxx # 4.16
> Cc: Ji-Ze Hong (Peter Hong) <hpeter@xxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>