net: sctp: get rid of t_new macro for kzalloc
[deliverable/linux.git] / net / sctp / protocol.c
index eaee00c61139b974572e8c4aed425176f3ae2894..fad7d1b67be564b4655ebd076d12dfc40ff734bc 100644 (file)
@@ -153,7 +153,7 @@ static void sctp_v4_copy_addrlist(struct list_head *addrlist,
 
        for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
                /* 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.v4.sin_family = AF_INET;
                        addr->a.v4.sin_port = 0;
This page took 0.023919 seconds and 5 git commands to generate.