From: Vlad Yasevich Date: Sun, 29 Apr 2007 04:09:04 +0000 (-0700) Subject: [SCTP]: Fix sctp_getsockopt_local_addrs_old() to use local storage. X-Git-Tag: v2.6.22-rc1~1107^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aad97f38b71dd2ecd730b3a3dce8264d13fbcd56;p=pandora-kernel.git [SCTP]: Fix sctp_getsockopt_local_addrs_old() to use local storage. sctp_getsockopt_local_addrs_old() in net/sctp/socket.c calls copy_to_user() while the spinlock addr_lock is held. this should not be done as copy_to_user() might sleep. the call to sctp_copy_laddrs_to_user() while holding the lock is also problematic as it calls copy_to_user() Signed-off-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed