--- x/net/sctp/socket.c.~1~ 2003-11-28 23:12:50.000000000 +0100 +++ x/net/sctp/socket.c 2004-07-04 00:40:41.996958008 +0200 @@ -1515,18 +1515,7 @@ SCTP_STATIC int sctp_setsockopt(struct s switch (optname) { case SCTP_SOCKOPT_DEBUG_NAME: - /* BUG! we don't ever seem to free this memory. --jgrimm */ - if (NULL == (tmp = kmalloc(optlen + 1, GFP_KERNEL))) { - retval = -ENOMEM; - goto out_unlock; - } - - if (copy_from_user(tmp, optval, optlen)) { - retval = -EFAULT; - goto out_unlock; - } - tmp[optlen] = '\000'; - sctp_sk(sk)->ep->debug_name = tmp; + /* do nothing */ break; case SCTP_SOCKOPT_BINDX_ADD: