Repository navigation
Commit e808bb6
ATM-iphase: Use kmalloc_array() in tx_init()
* Multiplications for the size determination of memory allocations
indicated that array data structures should be processed.
Thus use the corresponding function "kmalloc_array".
This issue was detected by using the Coccinelle software.
* Replace the specification of data types by pointer dereferences
to make the corresponding size determination a bit safer according to
the Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 171a6c5 commit e808bb6
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1975 | 1975 | | |
1976 | 1976 | | |
1977 | 1977 | | |
1978 | | - | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
1979 | 1981 | | |
1980 | 1982 | | |
1981 | 1983 | | |
| |||
1995 | 1997 | | |
1996 | 1998 | | |
1997 | 1999 | | |
1998 | | - | |
1999 | | - | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
2000 | 2003 | | |
2001 | 2004 | | |
2002 | 2005 | | |
| |||
2124 | 2127 | | |
2125 | 2128 | | |
2126 | 2129 | | |
2127 | | - | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
2128 | 2133 | | |
2129 | 2134 | | |
2130 | 2135 | | |
| |||
0 commit comments