mbox series

[0/5] Stop calling request_irq(), etc. with invalid IRQs in the EDAC drivers

Message ID 20220126200353.14582-1-s.shtylyov@omp.ru (mailing list archive)
Headers show
Series Stop calling request_irq(), etc. with invalid IRQs in the EDAC drivers | expand

Message

Sergey Shtylyov Jan. 26, 2022, 8:03 p.m. UTC
Here are 5 patches against the 'edac-for-next' branch of the 'ras.git' repo
(for the lack of a better branch for fixes?).  The affected drivers call
platform_get_irq() but largely ignore its result -- they blithely pass the
negative error codes to request_irq() (and its ilk) which expects *unsigned*
IRQ #. Stop doing that by checking what exactly platform_get_irq() returns.

Sergey Shtylyov (5):
  edac: altera: add IRQ checks for L2 cache and OCRAM
  edac: altera: add IRQ check for Arria10
  edac: fsl_ddr: add IRQ check
  edac: highbank_l2: add IRQ checks
  edac: highbank_mc: add IRQ check

 drivers/edac/altera_edac.c      | 17 ++++++++++++++---
 drivers/edac/fsl_ddr_edac.c     |  4 ++++
 drivers/edac/highbank_l2_edac.c |  8 ++++++++
 drivers/edac/highbank_mc_edac.c |  4 ++++
 4 files changed, 30 insertions(+), 3 deletions(-)