diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2022-01-19 19:55:46 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-26 14:03:26 +0100 |
| commit | e62667f82aa6b14faa6abfe395b7351f63b8db8f (patch) | |
| tree | abfbe1e025d8b050c952ce939bbd94dfbedeef70 /tools/perf/scripts/python | |
| parent | USB: hcd-pci: Use PCI_STD_NUM_BARS when checking standard BARs (diff) | |
| download | linux-e62667f82aa6b14faa6abfe395b7351f63b8db8f.tar.gz linux-e62667f82aa6b14faa6abfe395b7351f63b8db8f.zip | |
usb: xhci-mtk: Use struct_size() helper in create_sch_ep()
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 worst scenario, could lead to heap overflows.
Also, address the following sparse warnings:
drivers/usb/host/xhci-mtk-sch.c:265:20: warning: using sizeof on a flexible structure
Link: https://github.com/KSPP/linux/issues/160
Link: https://github.com/KSPP/linux/issues/174
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20220120015546.GA75917@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
