diff options
author | Amitoj Kaur Chawla <[email protected]> | 2016-02-25 18:50:58 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-03-11 22:09:09 -0800 |
commit | 0c9ab986e2dc87bd7c87384afeddd1326570d03e (patch) | |
tree | cde2f43cffb6ed851d5661ee0be3692cac95631f /tools/perf/scripts/python/check-perf-trace.py | |
parent | 71e03f10384c16887d5dd32c6b1e7006b09ec592 (diff) |
staging: fbtft: 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,E2,E3,E4;
@@
- devm_kzalloc(dev,E1*E2*sizeof(E3),E4)
+ devm_kcalloc(dev,E1*E2,sizeof(E3),E4)
//</smpl>
Signed-off-by: Amitoj Kaur Chawla <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions