aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2021-05-13 14:33:53 -0500
committerGreg Kroah-Hartman <[email protected]>2021-05-21 14:05:27 +0200
commit106133dacc001e4e3a7ebcdb96368f523bf44a89 (patch)
treee6b6920b26eff5607f57e44793841b1dc887ce6a /tools/perf/scripts/python/stackcollapse.py
parent53ad92fdf7c34c3b44566553077176a767612454 (diff)
usb: gadget: s3c-hsudc: Use struct_size() in devm_kzalloc()
Make use of the struct_size() helper instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worse scenario, could lead to heap overflows. This code was detected with the help of Coccinelle and, audited and fixed manually. Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]> Link: https://lore.kernel.org/r/20210513193353.GA196565@embeddedor Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions