From: Andrei Pelinescu-Onciul Date: Mon, 23 Nov 2009 20:54:01 +0000 (-0500) Subject: sctp: fix integer overflow when setting the autoclose timer X-Git-Tag: v2.6.33-rc1~388^2~167^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da85b7396f3b6cb3fea7d77091498bfa1051ef7c;p=pandora-kernel.git 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 Signed-off-by: Vlad Yasevich --- Reading git-diff-tree failed