]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf99c092bcd71d6bba4128958363e40b6a857ce4b
treed3aca83fb8994d2efbc5420d68e1d27f1c8c08a7
parent6d6250c66ba9f01a5afcd602e931759b5ce63581
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