pcmcia: add important if statement
authorDan Carpenter <error27@gmail.com>
Mon, 15 Mar 2010 08:25:10 +0000 (11:25 +0300)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 15 Mar 2010 13:50:17 +0000 (14:50 +0100)
There was a problem introduced in Jul 2008 by:
0e6f9d270840 pcmcia: use pcmcia_loop_config in scsi pcmcia drivers

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/scsi/pcmcia/nsp_cs.c

index c2341af587a3111e1920678400f75be246afb017..02124645487215aa7b02d7da572d66798aa5f0e6 100644 (file)
@@ -1717,6 +1717,7 @@ static int nsp_cs_config(struct pcmcia_device *link)
        cfg_mem->data = data;
 
        ret = pcmcia_loop_config(link, nsp_cs_config_check, cfg_mem);
+       if (ret)
                goto cs_failed;
 
        if (link->conf.Attributes & CONF_ENABLE_IRQ) {