treewide: kmalloc() -> kmalloc_array()
[linux-block.git] / net / ipv4 / route.c
index bf4e4adc2d0002c3acc016bfa7e128a477150b33..6bcd1eacc1f0fc53315d26ea27bfcd14563cc9a1 100644 (file)
@@ -3146,7 +3146,8 @@ int __init ip_rt_init(void)
 {
        int cpu;
 
-       ip_idents = kmalloc(IP_IDENTS_SZ * sizeof(*ip_idents), GFP_KERNEL);
+       ip_idents = kmalloc_array(IP_IDENTS_SZ, sizeof(*ip_idents),
+                                 GFP_KERNEL);
        if (!ip_idents)
                panic("IP: failed to allocate ip_idents\n");