diff options
author | 2017-05-26 22:37:38 +0800 | |
---|---|---|
committer | 2017-05-27 18:44:17 -0400 | |
commit | fb3ce90b7d7761b6f7f28f0ff5c456ef6b5229a1 (patch) | |
tree | 68115fc1133d475bdfa9e5cc399c20f7715d3ec5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: dsa: mv88e6xxx: Add eeprom-length to binding (diff) | |
download | wireguard-linux-fb3ce90b7d7761b6f7f28f0ff5c456ef6b5229a1.tar.xz wireguard-linux-fb3ce90b7d7761b6f7f28f0ff5c456ef6b5229a1.zip |
hdlcdrv: Fix divide by zero in hdlcdrv_ioctl
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@google.com>
Signed-off-by: Firo Yang <firogm@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions