mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ATM: horizon, fix hrz_probe fail path
@ 2008-11-29 21:34 Jiri Slaby
  2008-11-30  4:43 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Slaby @ 2008-11-29 21:34 UTC (permalink / raw)
  To: chas; +Cc: akpm, linux-kernel, Jiri Slaby

One fail path in hrz_probe omitted device disable. Fix it.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
 drivers/atm/horizon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c
index 6154123..6b969f8 100644
--- a/drivers/atm/horizon.c
+++ b/drivers/atm/horizon.c
@@ -2705,7 +2705,7 @@ static int __devinit hrz_probe(struct pci_dev *pci_dev, const struct pci_device_
 
 	/* XXX DEV_LABEL is a guess */
 	if (!request_region(iobase, HRZ_IO_EXTENT, DEV_LABEL)) {
-		return -EINVAL;
+		err = -EINVAL;
 		goto out_disable;
 	}
 
-- 
1.6.0.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-01  7:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-29 21:34 [PATCH] ATM: horizon, fix hrz_probe fail path Jiri Slaby
2008-11-30  4:43 ` David Miller
2008-11-30  8:23   ` [PATCH] MAINTAINERS: add netdev to ATM Jiri Slaby
2008-12-01  7:27     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®