diff options
| author | Gustavo A. R. Silva <[email protected]> | 2018-08-23 12:55:27 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-10 20:05:28 +0200 |
| commit | 23feefda22392d44ee4101dfcf946bc87a6c74b3 (patch) | |
| tree | 1c23cf16b2fda498cea4ef422e48d2102c76c960 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
| parent | 87f88dfcde0ecde2a1136b8364099dddb9895b12 (diff) | |
usb: iowarrior: replace kmalloc with kmalloc_array
A common flaw in the kernel is integer overflow during memory allocation
size calculations. In an effort to reduce the frequency of these bugs,
kmalloc_array was implemented, which allocates memory for an array,
while at the same time detects integer overflow.
This patch replaces cases of:
kmalloc(a * b, gfp)
with:
kmalloc_array(a, b, gfp)
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions