projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'usb-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[cascardo/linux.git]
/
drivers
/
tty
/
cyclades.c
diff --git
a/drivers/tty/cyclades.c
b/drivers/tty/cyclades.c
index
33f83fe
..
a57bb5a
100644
(file)
--- a/
drivers/tty/cyclades.c
+++ b/
drivers/tty/cyclades.c
@@
-2709,6
+2709,8
@@
cy_ioctl(struct tty_struct *tty,
break;
#ifndef CONFIG_CYZ_INTR
case CYZSETPOLLCYCLE:
+ if (arg > LONG_MAX / HZ)
+ return -ENODEV;
cyz_polling_cycle = (arg * HZ) / 1000;
break;
case CYZGETPOLLCYCLE: