Home
last modified time | relevance | path

Searched hist:"01 e23742b276cb8cb53bf727c4b1c50fae1860e7" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sp.cdiff 01e23742b276cb8cb53bf727c4b1c50fae1860e7 Tue Nov 29 05:08:00 CST 2011 Thomas Meyer <thomas@m3y3r.de> bnx2x: Use kcalloc instead of kzalloc to allocate array

The advantage of kcalloc is, that will prevent integer overflows which could
result from the multiplication of number of elements and size and it is also
a bit nicer to read.

The semantic patch that makes this change is available
in https://lkml.org/lkml/2011/11/25/107

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
H A Dbnx2x_cmn.cdiff 01e23742b276cb8cb53bf727c4b1c50fae1860e7 Tue Nov 29 05:08:00 CST 2011 Thomas Meyer <thomas@m3y3r.de> bnx2x: Use kcalloc instead of kzalloc to allocate array

The advantage of kcalloc is, that will prevent integer overflows which could
result from the multiplication of number of elements and size and it is also
a bit nicer to read.

The semantic patch that makes this change is available
in https://lkml.org/lkml/2011/11/25/107

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: David S. Miller <davem@davemloft.net>