|
@@ -402,7 +402,7 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist,
|
|
|
read_lock_bh(&in6_dev->lock);
|
|
|
list_for_each_entry(ifp, &in6_dev->addr_list, if_list) {
|
|
|
/* Add the address to the local list. */
|
|
|
- addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC);
|
|
|
+ addr = kzalloc(sizeof(*addr), GFP_ATOMIC);
|
|
|
if (addr) {
|
|
|
addr->a.v6.sin6_family = AF_INET6;
|
|
|
addr->a.v6.sin6_port = 0;
|