Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266850
b: refs/heads/master
c: 73033c9
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Tarnyagin authored and David S. Miller committed Oct 19, 2011
1 parent e1994ed commit 4ef37cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe47f1250805438fa06580c9ce6d37bc4bc595d2
refs/heads/master: 73033c987a8bd0b080509063bb7c130b8941ad73
10 changes: 7 additions & 3 deletions trunk/drivers/net/caif/caif_hsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,9 @@ static void cfhsi_rx_done_work(struct work_struct *work)
return;

/* Update inactivity timer if pending. */
spin_lock_bh(&cfhsi->lock);
mod_timer_pending(&cfhsi->timer, jiffies + CFHSI_INACTIVITY_TOUT);
spin_unlock_bh(&cfhsi->lock);

if (cfhsi->rx_state == CFHSI_RX_STATE_DESC) {
desc_pld_len = cfhsi_rx_desc(desc, cfhsi);
Expand Down Expand Up @@ -866,10 +868,10 @@ static int cfhsi_xmit(struct sk_buff *skb, struct net_device *dev)
start_xfer = 1;
}

spin_unlock_bh(&cfhsi->lock);

if (!start_xfer)
if (!start_xfer) {
spin_unlock_bh(&cfhsi->lock);
return 0;
}

/* Delete inactivity timer if started. */
#ifdef CONFIG_SMP
Expand All @@ -878,6 +880,8 @@ static int cfhsi_xmit(struct sk_buff *skb, struct net_device *dev)
timer_active = del_timer(&cfhsi->timer);
#endif /* CONFIG_SMP */

spin_unlock_bh(&cfhsi->lock);

if (timer_active) {
struct cfhsi_desc *desc = (struct cfhsi_desc *)cfhsi->tx_buf;
int len;
Expand Down

0 comments on commit 4ef37cd

Please sign in to comment.