diff options
| author | Gustavo A. R. Silva <[email protected]> | 2022-01-20 16:20:43 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-01-26 14:01:59 +0100 |
| commit | 7643fd78e1467642757224bd9c39b4bce4422e50 (patch) | |
| tree | 7f7bd093b8593df034c4d5d60d5da16afd7a5fa6 /tools/perf/scripts/python/bin | |
| parent | c89686118c786a523eee3ef68ed38330319626d8 (diff) | |
usb: host: fotg210: Use struct_size() helper in 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 worst scenario, could lead to heap overflows.
Also, address the following sparse warnings:
drivers/usb/host/fotg210-hcd.c:4017:20: warning: using sizeof on a flexible structure
Link: https://github.com/KSPP/linux/issues/174
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Link: https://lore.kernel.org/r/20220120222043.GA33559@embeddedor
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions