sctp: limit maximum autoclose setsockopt value
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Mon, 23 Nov 2009 20:54:01 +0000 (15:54 -0500)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Mon, 23 Nov 2009 20:54:01 +0000 (15:54 -0500)
commitf6778aab6ccc4b510b4dcfa770d9949b696b4545
treed3aca83fb8994d2efbc5420d68e1d27f1c8c08a7
parentd8dd15781dd621c5ceab79083f4c5112787863f5
sctp: limit maximum autoclose setsockopt value

To avoid overflowing the maximum timer interval when transforming
the  autoclose interval from seconds to jiffies, limit the maximum
autoclose value to MAX_SCHEDULE_TIMEOUT/HZ.

Signed-off-by: Andrei Pelinescu-Onciul <andrei@iptel.org>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/socket.c