treewide: kmalloc() -> kmalloc_array()
[sfrench/cifs-2.6.git] / drivers / net / ethernet / broadcom / bnx2.c
index 3853296d78c14e3d5645fb0597948fe8e11851f5..e13bf3b4636d5c11e612b5e9a51691942d161977 100644 (file)
@@ -2666,7 +2666,7 @@ bnx2_alloc_bad_rbuf(struct bnx2 *bp)
        u32 good_mbuf_cnt;
        u32 val;
 
-       good_mbuf = kmalloc(512 * sizeof(u16), GFP_KERNEL);
+       good_mbuf = kmalloc_array(512, sizeof(u16), GFP_KERNEL);
        if (!good_mbuf)
                return -ENOMEM;