From: Vlad Yasevich Date: Wed, 23 May 2007 15:11:37 +0000 (-0400) Subject: [SCTP] Fix leak in sctp_getsockopt_local_addrs when copy_to_user fails X-Git-Tag: v2.6.22-rc5~39^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe979ac169970b3d12facd6565766735862395c5;p=pandora-kernel.git [SCTP] Fix leak in sctp_getsockopt_local_addrs when copy_to_user fails If the copy_to_user or copy_user calls fail in sctp_getsockopt_local_addrs(), the function should free locally allocated storage before returning error. Spotted by Coverity. Signed-off-by: Vlad Yasevich Acked-by: Sridhar Samudrala --- Reading git-diff-tree failed