[PATCH 0/2] staging: octeon: cleanups and error handling fixes in ethernet-rx.c

From: Oscar Alejandro Sánchez Lucero via B4 Relay

Date: Sat Nov 07 2026 - 06:27:59 EST


This series fixes a couple of issues found during code review and static
analysis of drivers/staging/octeon/ethernet-rx.c:

1. Avoid non-standard GCC pointer arithmetic on void * in cvm_oct_poll()
by casting to u8 * first.
2. Add a proper error rollback path in cvm_oct_rx_initialize() so that
NAPI instances, interrupts, and POW/SSO registers from previous loop
iterations are properly cleaned up if request_irq() fails.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@xxxxxxxxx>
---
Oscar Alejandro Sánchez Lucero (2):
staging: octeon: avoid void pointer arithmetic in ethernet-rx.c
staging: octeon: fix error handling rollback in cvm_oct_rx_initialize()

drivers/staging/octeon/ethernet-rx.c | 26 +++++++++++++++++++++-----
1 file changed, 21 insertions(+), 5 deletions(-)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
change-id: 20261107-octeon-rx-fixes-d4d7620258c9

Best regards,
--
Oscar Alejandro Sánchez Lucero <aleszlucero@xxxxxxxxx>