]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drivers/net: sgiseeq: fix return on error
authorNicolas Kaiser <nikai@nikai.net>
Tue, 26 Oct 2010 17:02:13 +0000 (10:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Oct 2010 17:02:13 +0000 (10:02 -0700)
If we continue on error, we'd likely free the IRQ that we
didn't get, right?

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sgiseeq.c

index 9265315baa0b29bdc2c7a9e20db20462dcf52ae5..3a0cc63428eec6d8222dee806b0594af9aa9f95c 100644 (file)
@@ -531,7 +531,7 @@ static int sgiseeq_open(struct net_device *dev)
 
        if (request_irq(irq, sgiseeq_interrupt, 0, sgiseeqstr, dev)) {
                printk(KERN_ERR "Seeq8003: Can't get irq %d\n", dev->irq);
-               err = -EAGAIN;
+               return -EAGAIN;
        }
 
        err = init_seeq(dev, sp, sregs);