diff options
| author | David Laight <david.laight.linux@gmail.com> | 2025-11-19 22:41:24 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-21 15:17:24 +0100 |
| commit | de7275cbc6171ce777fae7af444cf8efaf14258b (patch) | |
| tree | a679160fff57ff8de08395c5382860ce02c313db /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | usb: raw-gadget: cap raw_io transfer length to KMALLOC_MAX_SIZE (diff) | |
| download | linux-de7275cbc6171ce777fae7af444cf8efaf14258b.tar.gz linux-de7275cbc6171ce777fae7af444cf8efaf14258b.zip | |
drivers/usb/storage: use min() instead of min_t()
min_t(unsigned int, a, b) casts an 'unsigned long' to 'unsigned int'.
Use min(a, b) instead as it promotes any 'unsigned int' to 'unsigned long'
and so cannot discard significant bits.
In this case the 'unsigned long' value is small enough that the result
is ok.
Detected by an extra check added to min_t().
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Link: https://patch.msgid.link/20251119224140.8616-29-david.laight.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
