diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2016-02-25 18:50:58 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 0c9ab986e2dc87bd7c87384afeddd1326570d03e (patch) | |
tree | cde2f43cffb6ed851d5661ee0be3692cac95631f /REPORTING-BUGS | |
parent | 71e03f10384c16887d5dd32c6b1e7006b09ec592 (diff) | |
download | op-kernel-dev-0c9ab986e2dc87bd7c87384afeddd1326570d03e.zip op-kernel-dev-0c9ab986e2dc87bd7c87384afeddd1326570d03e.tar.gz |
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 <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions