diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-20 01:43:34 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-07-15 09:21:05 +0300 |
commit | ace52a8c2dd59e3c79fc2a442659ea7c5a52df7f (patch) | |
tree | 7be587122d9782cea0aa1e6ed84cbe523c177d4f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | db375dcb12250bbc148aef0fa8da747aaa8cf6ec (diff) | |
download | linux-ace52a8c2dd59e3c79fc2a442659ea7c5a52df7f.tar.xz |
dmaengine: ti: k3-udma: Use struct_size() in kzalloc()
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes.
This code was detected with the help of Coccinelle and, audited and
fixed manually.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
Link: https://lore.kernel.org/r/20200619224334.GA7857@embeddedor
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions