diff options
author | Edward Cree <[email protected]> | 2020-08-12 10:32:49 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-08-12 12:54:03 -0700 |
commit | 41077c99026643c633a1f79376d369fffc757e06 (patch) | |
tree | a053399130b4914940f9a900a6c4175f2f1ed8ae /scripts/gdb/linux/modules.py | |
parent | 633f5b6bca9b93f5c346a4b3cc60ed02ddd72062 (diff) |
sfc: fix ef100 design-param checking
The handling of the RXQ/TXQ size granularity design-params had two
problems: it had a 64-bit divide that didn't build on 32-bit platforms,
and it could divide by zero if the NIC supplied 0 as the value of the
design-param. Fix both by checking for 0 and for a granularity bigger
than our min-size; if the granularity <= EFX_MIN_DMAQ_SIZE then it fits
in 32 bits, so we can cast it to u32 for the divide.
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Edward Cree <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions