From: Neil Horman Date: Mon, 18 Jun 2007 23:59:16 +0000 (-0400) Subject: SCTP: Fix sctp_getsockopt_get_peer_addrs X-Git-Tag: v2.6.22-rc7~12^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=186e234358ba29a4094d0c8c0d3ea00f84d32a3e;p=pandora-kernel.git SCTP: Fix sctp_getsockopt_get_peer_addrs This is the split out of the patch that we agreed I should split out from my last patch. It changes space_left to be computed in the same way the to variable is. I know we talked about changing space_left to an int, but I think size_t is more appropriate, since we should never have negative space in our buffer, and computing using offsetof means space_left should now never drop below zero. Signed-off-by: Neil Horman Acked-by: Sridhar Samudrala Signed-off-by: Vlad Yasevich --- Reading git-diff-tree failed