]> Pileus Git - ~andy/linux/blobdiff - net/sctp/bind_addr.c
Merge tag 'xtensa-next-20130710' of git://github.com/czankel/xtensa-linux
[~andy/linux] / net / sctp / bind_addr.c
index 41145fe31813bc70907a9bdf9bba92886246b5b6..64977ea0f9c55e02988377ef6e2de73693607dea 100644 (file)
@@ -162,7 +162,7 @@ int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new,
        struct sctp_sockaddr_entry *addr;
 
        /* Add the address to the bind address list.  */
-       addr = t_new(struct sctp_sockaddr_entry, gfp);
+       addr = kzalloc(sizeof(*addr), gfp);
        if (!addr)
                return -ENOMEM;