aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-03-14 22:31:55 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-14 22:31:55 -0400
commit85dcce7a73f1cc59f7a96fe52713b1630f4ca272 (patch)
tree6c645923eb2f0152073b90685ce80e46cfb7afed /drivers/net/ieee802154
parent4c4e4113db249c828fffb286bc95ffb255e081f5 (diff)
parenta4ecdf82f8ea49f7d3a072121dcbd0bf3a7cb93a (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/usb/r8152.c drivers/net/xen-netback/netback.c Both the r8152 and netback conflicts were simple overlapping changes. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/at86rf230.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 934a12c03552..ae38a98d072e 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -655,12 +655,12 @@ at86rf230_xmit(struct ieee802154_dev *dev, struct sk_buff *skb)
655 int rc; 655 int rc;
656 unsigned long flags; 656 unsigned long flags;
657 657
658 spin_lock(&lp->lock); 658 spin_lock_irqsave(&lp->lock, flags);
659 if (lp->irq_busy) { 659 if (lp->irq_busy) {
660 spin_unlock(&lp->lock); 660 spin_unlock_irqrestore(&lp->lock, flags);
661 return -EBUSY; 661 return -EBUSY;
662 } 662 }
663 spin_unlock(&lp->lock); 663 spin_unlock_irqrestore(&lp->lock, flags);
664 664
665 might_sleep(); 665 might_sleep();
666 666
@@ -944,10 +944,11 @@ static void at86rf230_irqwork_level(struct work_struct *work)
944static irqreturn_t at86rf230_isr(int irq, void *data) 944static irqreturn_t at86rf230_isr(int irq, void *data)
945{ 945{
946 struct at86rf230_local *lp = data; 946 struct at86rf230_local *lp = data;
947 unsigned long flags;
947 948
948 spin_lock(&lp->lock); 949 spin_lock_irqsave(&lp->lock, flags);
949 lp->irq_busy = 1; 950 lp->irq_busy = 1;
950 spin_unlock(&lp->lock); 951 spin_unlock_irqrestore(&lp->lock, flags);
951 952
952 schedule_work(&lp->irqwork); 953 schedule_work(&lp->irqwork);
953 954