treewide: kmalloc() -> kmalloc_array()
[linux-block.git] / drivers / net / ethernet / intel / ixgbe / ixgbe_ethtool.c
index bdd179c29ea4ce5cb49fd4ea0b7d96436f5c82cc..be2636ea945b691225849fbcdf7810311bbd6c31 100644 (file)
@@ -901,7 +901,7 @@ static int ixgbe_get_eeprom(struct net_device *netdev,
        last_word = (eeprom->offset + eeprom->len - 1) >> 1;
        eeprom_len = last_word - first_word + 1;
 
-       eeprom_buff = kmalloc(sizeof(u16) * eeprom_len, GFP_KERNEL);
+       eeprom_buff = kmalloc_array(eeprom_len, sizeof(u16), GFP_KERNEL);
        if (!eeprom_buff)
                return -ENOMEM;