diff options
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r-- | net/sctp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index eaee00c61139..fad7d1b67be5 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -153,7 +153,7 @@ static void sctp_v4_copy_addrlist(struct list_head *addrlist, | |||
153 | 153 | ||
154 | for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { | 154 | for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { |
155 | /* Add the address to the local list. */ | 155 | /* Add the address to the local list. */ |
156 | addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC); | 156 | addr = kzalloc(sizeof(*addr), GFP_ATOMIC); |
157 | if (addr) { | 157 | if (addr) { |
158 | addr->a.v4.sin_family = AF_INET; | 158 | addr->a.v4.sin_family = AF_INET; |
159 | addr->a.v4.sin_port = 0; | 159 | addr->a.v4.sin_port = 0; |