summaryrefslogtreecommitdiffstats
path: root/lib/fault-inject.c
diff options
context:
space:
mode:
authorAndrei Pelinescu-Onciul <andrei@iptel.org>2009-11-23 15:54:01 -0500
committerVlad Yasevich <vladislav.yasevich@hp.com>2009-11-23 15:54:01 -0500
commitda85b7396f3b6cb3fea7d77091498bfa1051ef7c (patch)
tree692d41265fdff68172ea6cd4e70e9efbd40fe88e /lib/fault-inject.c
parentf6778aab6ccc4b510b4dcfa770d9949b696b4545 (diff)
downloadop-kernel-dev-da85b7396f3b6cb3fea7d77091498bfa1051ef7c.zip
op-kernel-dev-da85b7396f3b6cb3fea7d77091498bfa1051ef7c.tar.gz
sctp: fix integer overflow when setting the autoclose timer
When setting the autoclose timeout in jiffies there is a possible integer overflow if the value in seconds is very large (e.g. for 2^22 s with HZ=1024). The problem appears even on 64-bit due to the integer promotion rules. The fix is just a cast to unsigned long. Signed-off-by: Andrei Pelinescu-Onciul <andrei@iptel.org> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud