From: Dan Carpenter Date: Mon, 15 Mar 2010 08:25:10 +0000 (+0300) Subject: pcmcia: add important if statement X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e794c01b7de40d180417eacbd910e8f31f2fafeb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git pcmcia: add important if statement There was a problem introduced in Jul 2008 by: 0e6f9d270840 pcmcia: use pcmcia_loop_config in scsi pcmcia drivers Signed-off-by: Dan Carpenter Signed-off-by: Dominik Brodowski --- diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index c2341af587a3..021246454872 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c @@ -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) {