Re: [PATCH v3] hdlcdrv: Fix divide by zero in hdlcdrv_ioctl

From: David Miller
Date: Sat May 27 2017 - 18:46:16 EST


From: Firo Yang <firogm@xxxxxxxxx>
Date: Fri, 26 May 2017 22:37:38 +0800

> syszkaller fuzzer triggered a divide by zero, when set calibration
> through ioctl().
>
> To fix it, test 'bitrate' if it is negative or 0, just return -EINVAL.
>
> Reported-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx>
> Signed-off-by: Firo Yang <firogm@xxxxxxxxx>

Applied, thank you.