drivers/net: sgiseeq: fix return on error
Subsystems (2)
PATCH 1/1 drivers/net: sgiseeq: fix return on error
If we continue on error, we'd likely free the IRQ that we didn't get, right?
Signed-off-by Nicolas Kaiser <[email protected]>
--- drivers/net/sgiseeq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/sgiseeq.c +1 -1
@@ -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);
Signature · 1 line
1.7.2.2
David Miller
maintainerFrom: Nicolas Kaiser <[email protected]>
Date: Tue, 26 Oct 2010 18:45:05 +0200
Quoted 4 lines
If we continue on error, we'd likely free the IRQ that we didn't get, right?
Signed-off-by Nicolas Kaiser <[email protected]>
Yep, applied, thank you.