mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: octeon: cleanups and error handling fixes in ethernet-rx.c
@ 2026-11-07 11:06 Oscar Alejandro Sánchez Lucero via B4 Relay
  2026-11-07 11:06 ` [PATCH 1/2] staging: octeon: avoid void pointer arithmetic " Oscar Alejandro Sánchez Lucero via B4 Relay
  2026-11-07 11:06 ` [PATCH 2/2] staging: octeon: fix error handling rollback in cvm_oct_rx_initialize() Oscar Alejandro Sánchez Lucero via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Oscar Alejandro Sánchez Lucero via B4 Relay @ 2026-11-07 11:06 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-staging, linux-kernel, Oscar Alejandro Sánchez Lucero

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@gmail.com>
---
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@gmail.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-07 11:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 11:06 [PATCH 0/2] staging: octeon: cleanups and error handling fixes in ethernet-rx.c Oscar Alejandro Sánchez Lucero via B4 Relay
2026-11-07 11:06 ` [PATCH 1/2] staging: octeon: avoid void pointer arithmetic " Oscar Alejandro Sánchez Lucero via B4 Relay
2026-11-07 11:06 ` [PATCH 2/2] staging: octeon: fix error handling rollback in cvm_oct_rx_initialize() Oscar Alejandro Sánchez Lucero via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®