diff options
| author | Amitoj Kaur Chawla <[email protected]> | 2016-02-25 19:25:04 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-03-11 22:09:09 -0800 |
| commit | 0969e3d46b7cae0d52ba14e8901105d3cb421eb1 (patch) | |
| tree | bc1a71d042e3ae554191dd7482f6cfd5ed936705 /scripts/gdb/linux/dmesg.py | |
| parent | dd28473385e78f94456fc66bd05c9d6db3febe13 (diff) | |
staging: android: ion: tegra: Use devm_kcalloc instead of devm_kzalloc
Replace devm_kzalloc with devm_kcalloc to ensure there are no integer
overflows from the multiplication of a number * sizeof.
The following Coccinelle semantic patch was used to make this change:
//<smpl>
@@
expression dev,E1,E3;
type T;
@@
- devm_kzalloc(dev,E1*sizeof(T),E3)
+ devm_kcalloc(dev,E1,sizeof(T),E3)
//</smpl>
Signed-off-by: Amitoj Kaur Chawla <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions