| commit | 85f4b0c650d9f9db10bda8d3acfa1af83bf78cf7 | [log] [tgz] |
|---|---|---|
| author | Anshumali Gaur <agaur@marvell.com> | Fri Dec 19 11:52:26 2025 +0530 |
| committer | Paolo Abeni <pabeni@redhat.com> | Mon Dec 29 16:46:19 2025 +0100 |
| tree | 3205ab8e712a498a11c936f3af76b8a7a9d974d9 | |
| parent | 4d1442979e4a53b9457ce1e373e187e1511ff688 [diff] |
octeontx2-pf: fix "UBSAN: shift-out-of-bounds error"
This patch ensures that the RX ring size (rx_pending) is not
set below the permitted length. This avoids UBSAN
shift-out-of-bounds errors when users passes small or zero
ring sizes via ethtool -G.
Fixes: d45d8979840d ("octeontx2-pf: Add basic ethtool support")
Signed-off-by: Anshumali Gaur <agaur@marvell.com>
Link: https://patch.msgid.link/20251219062226.524844-1-agaur@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>