]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
solos-pci: double lock in geos_gpio_store()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Dec 2012 21:48:45 +0000 (21:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Dec 2012 21:14:00 +0000 (13:14 -0800)
There is a typo here so we do a double lock instead of an unlock.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/solos-pci.c

index d70abe77f737591c236e8b711aef14a4ca37826a..d47db401027ff24b0da5d2dee2b68924ec6a0cdd 100644 (file)
@@ -538,7 +538,7 @@ static ssize_t geos_gpio_store(struct device *dev, struct device_attribute *attr
        } else {
                count = -EINVAL;
        }
        } else {
                count = -EINVAL;
        }
-       spin_lock_irq(&card->param_queue_lock);
+       spin_unlock_irq(&card->param_queue_lock);
        return count;
 }
 
        return count;
 }