diff options
| author | Gustavo A. R. Silva <[email protected]> | 2022-01-19 19:55:46 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-01-26 14:03:26 +0100 |
| commit | e62667f82aa6b14faa6abfe395b7351f63b8db8f (patch) | |
| tree | abfbe1e025d8b050c952ce939bbd94dfbedeef70 /tools/perf/scripts/python | |
| parent | 5d0c4393b207660fb9d6b08caed03ac85435fcd9 (diff) | |
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 <[email protected]>
Acked-by: Chunfeng Yun <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Link: https://lore.kernel.org/r/20220120015546.GA75917@embeddedor
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions