mirror of
https://github.com/torvalds/linux.git
synced 2026-10-17 14:30:03 +02:00
roundup_pow_of_two() is undefined for zero. ethtool permits a zero ring
size to reach the driver, where the minimum-size check should reject it.
Leave zero unchanged while rounding nonzero ring sizes. The minimum-size
check then rejects zero deterministically without changing the established
behavior for other values.
Fixes:
|
||
|---|---|---|
| .. | ||
| fbnic | ||
| Kconfig | ||
| Makefile | ||