aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index fffc7b62a9a8..4f3e13b31fcc 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -402,7 +402,7 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist,
402 read_lock_bh(&in6_dev->lock); 402 read_lock_bh(&in6_dev->lock);
403 list_for_each_entry(ifp, &in6_dev->addr_list, if_list) { 403 list_for_each_entry(ifp, &in6_dev->addr_list, if_list) {
404 /* Add the address to the local list. */ 404 /* Add the address to the local list. */
405 addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC); 405 addr = kzalloc(sizeof(*addr), GFP_ATOMIC);
406 if (addr) { 406 if (addr) {
407 addr->a.v6.sin6_family = AF_INET6; 407 addr->a.v6.sin6_family = AF_INET6;
408 addr->a.v6.sin6_port = 0; 408 addr->a.v6.sin6_port = 0;