From: Wei Yongjun Date: Mon, 2 Mar 2009 09:46:12 +0000 (+0000) Subject: sctp: fix the length check in sctp_getsockopt_maxburst() X-Git-Tag: v2.6.30-rc1~662^2~384 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6db93a58f1745cfe1acc2e1a1d68afc3245eced;p=pandora-kernel.git sctp: fix the length check in sctp_getsockopt_maxburst() The code in sctp_getsockopt_maxburst() doesn't allow len to be larger then struct sctp_assoc_value, which is a common case where app writers just pass down the sizeof(buf) or something similar. This patch fix the problem. Signed-off-by: Wei Yongjun Signed-off-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed