]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
SCTP: Fix sctp_getsockopt_get_peer_addrs
authorNeil Horman <nhorman@tuxdriver.com>
Mon, 18 Jun 2007 23:59:16 +0000 (19:59 -0400)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 19 Jun 2007 13:47:32 +0000 (09:47 -0400)
commit186e234358ba29a4094d0c8c0d3ea00f84d32a3e
tree656674d40530aac38ff79abd7be67a3ff3c5e49e
parent408f22e81ea2fcf96c80e85ee12d20ef5148bf7c
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 <nhorman@tuxdriver.com>
Acked-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/socket.c