ATM: horizon, fix hrz_probe fail path
authorJiri Slaby <jirislaby@gmail.com>
Sun, 30 Nov 2008 04:42:28 +0000 (20:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Nov 2008 04:42:28 +0000 (20:42 -0800)
One fail path in hrz_probe omitted device disable. Fix it.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/horizon.c

index 6154123..6b969f8 100644 (file)
@@ -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;
        }