diff options
author | Niklas Neronin <[email protected]> | 2024-04-29 17:02:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-05-01 08:47:14 +0200 |
commit | 0c9595089432c152640aa75cf14e76d5510965f4 (patch) | |
tree | ca7e678b94e0bb0c11413fd330cebf88e18587c8 /scripts/generate_rust_analyzer.py | |
parent | 7e2bd7dd80841729993ca6903dbf58b3b2b2b565 (diff) |
usb: xhci: use array_size() when allocating and freeing memory
Replace size_mul() with array_size() in memory allocation and freeing
processes, it fits better semantically.
Macro array_size() is identical to size_mult(), which clamps the max size,
so it's imperative that array_size() is used when freeing said memory.
Suggested-by: Andy Shevchenko <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Niklas Neronin <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions