From: Kulikov Vasiliy Date: Fri, 30 Jul 2010 11:07:42 +0000 (+0400) Subject: staging: octeon: check request_irq() return value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=94f5659cfa4f14ba901fbbb8a57d0145754d0d37;p=linux-beck.git staging: octeon: check request_irq() return value request_irq() may fail, if so propagate error code. Signed-off-by: Kulikov Vasiliy Acked-by: David Daney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/octeon/ethernet-spi.c b/drivers/staging/octeon/ethernet-spi.c index b58b8971f939..970825421884 100644 --- a/drivers/staging/octeon/ethernet-spi.c +++ b/drivers/staging/octeon/ethernet-spi.c @@ -294,6 +294,8 @@ int cvm_oct_spi_init(struct net_device *dev) if (number_spi_ports == 0) { r = request_irq(OCTEON_IRQ_RML, cvm_oct_spi_rml_interrupt, IRQF_SHARED, "SPI", &number_spi_ports); + if (r) + return r; } number_spi_ports++;