if slic_card_locate failed, memmapped_ioaddr is not unmapped.

Signed-off-by: Laurent Navet <[email protected]>
---
 drivers/staging/slicoss/slicoss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/slicoss/slicoss.c 
b/drivers/staging/slicoss/slicoss.c
index 652272b..ab7206d 100644
--- a/drivers/staging/slicoss/slicoss.c
+++ b/drivers/staging/slicoss/slicoss.c
@@ -3708,7 +3708,7 @@ static int slic_entry_probe(struct pci_dev *pcidev,
        err = slic_card_locate(adapter);
        if (err) {
                dev_err(&pcidev->dev, "cannot locate card\n");
-               goto err_out_free_mmio_region;
+               goto err_out_unmap;
        }
 
        card = adapter->card;
-- 
1.8.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to