From: Jiri Slaby Date: Sun, 30 Nov 2008 04:42:28 +0000 (-0800) Subject: ATM: horizon, fix hrz_probe fail path X-Git-Tag: v2.6.28-rc8~73^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aac725cf1649d593a13be1edc99ed489f8050a99;p=linux-2.6-omap-h63xx.git ATM: horizon, fix hrz_probe fail path One fail path in hrz_probe omitted device disable. Fix it. Signed-off-by: Jiri Slaby Signed-off-by: David S. Miller --- diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c index 615412364e9..6b969f8c684 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; }