aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/prism54/islpci_mgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/prism54/islpci_mgt.c')
-rw-r--r--drivers/net/wireless/prism54/islpci_mgt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/prism54/islpci_mgt.c b/drivers/net/wireless/prism54/islpci_mgt.c
index 2246f7930b4e..f7c677e2094d 100644
--- a/drivers/net/wireless/prism54/islpci_mgt.c
+++ b/drivers/net/wireless/prism54/islpci_mgt.c
@@ -460,7 +460,7 @@ islpci_mgt_transaction(struct net_device *ndev,
460 460
461 *recvframe = NULL; 461 *recvframe = NULL;
462 462
463 if (down_interruptible(&priv->mgmt_sem)) 463 if (mutex_lock_interruptible(&priv->mgmt_lock))
464 return -ERESTARTSYS; 464 return -ERESTARTSYS;
465 465
466 prepare_to_wait(&priv->mgmt_wqueue, &wait, TASK_UNINTERRUPTIBLE); 466 prepare_to_wait(&priv->mgmt_wqueue, &wait, TASK_UNINTERRUPTIBLE);
@@ -504,7 +504,7 @@ islpci_mgt_transaction(struct net_device *ndev,
504 /* TODO: we should reset the device here */ 504 /* TODO: we should reset the device here */
505 out: 505 out:
506 finish_wait(&priv->mgmt_wqueue, &wait); 506 finish_wait(&priv->mgmt_wqueue, &wait);
507 up(&priv->mgmt_sem); 507 mutex_unlock(&priv->mgmt_lock);
508 return err; 508 return err;
509} 509}
510 510