mbox series

[v3,0/3] Stop calling request_irq() with invalid IRQs

Message ID 137b9e4d-391f-3163-2e6f-9e21aeb6bf34@omprussia.ru
Headers show
Series Stop calling request_irq() with invalid IRQs | expand

Message

Sergey Shtylyov March 30, 2021, 5:40 p.m. UTC
Here are 3 patches against the 'fixes' branch of Martin Petersen's 'scsi.git' repo.
The affected drivers call platform_get_irq() but ignore its result -- they blithely
pass the negative error codes to request_irq() which expects *unsinged* IRQ #s. Stop
doing that by checking what platform_get_irq() returns.

[1/3: scsi: jazz_esp: add IRQ check
[2/3] scsi: sun3x_esp: add IRQ check
[3/3] scsi: sni_53c710: add IRQ check

Comments

Martin K. Petersen April 16, 2021, 2:51 a.m. UTC | #1
On Tue, 30 Mar 2021 20:40:35 +0300, Sergey Shtylyov wrote:

> Here are 3 patches against the 'fixes' branch of Martin Petersen's 'scsi.git' repo.

> The affected drivers call platform_get_irq() but ignore its result -- they blithely

> pass the negative error codes to request_irq() which expects *unsinged* IRQ #s. Stop

> doing that by checking what platform_get_irq() returns.

> 

> [1/3: scsi: jazz_esp: add IRQ check

> [2/3] scsi: sun3x_esp: add IRQ check

> [3/3] scsi: sni_53c710: add IRQ check


Applied to 5.13/scsi-queue, thanks!

[1/3] scsi: jazz_esp: add IRQ check
      https://git.kernel.org/mkp/scsi/c/38fca15c29db
[2/3] scsi: sun3x_esp: add IRQ check
      https://git.kernel.org/mkp/scsi/c/14b321380eb3
[3/3] scsi: sni_53c710: add IRQ check
      https://git.kernel.org/mkp/scsi/c/1160d61bc51e

-- 
Martin K. Petersen	Oracle Linux Engineering