[PATCH] drivers/net/sbni.c irq release on failure

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Sat Dec 09 2000 - 14:49:18 EST


Alan/Yaroslav,

        Please consider applying, a similar patch is already in 2.4.

- Arnaldo

--- linux-2.2.18-pre25/drivers/net/sbni.c Sat Dec 9 15:08:17 2000
+++ linux-2.2.18-pre25.acme/drivers/net/sbni.c Sat Dec 9 17:44:53 2000
@@ -456,6 +456,7 @@
         if(dev->priv == NULL)
         {
                 DP( printk("%s: cannot allocate memory\n", dev->name); )
+ free_irq(dev->irq, dev);
                 return -ENOMEM;
         }
    
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 15 2000 - 21:00:18 EST