Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231933
b: refs/heads/master
c: 5ae2f66
h: refs/heads/master
i:
  231931: 4781aa4
v: v3
  • Loading branch information
Kuninori Morimoto authored and David S. Miller committed Jan 19, 2011
1 parent b20c4bf commit 8b398b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: 6ee400aafb60289b78fcde5ebccd8c4973fc53f4
refs/heads/master: 5ae2f66fe4626340d4fd9d26b522ce377c780a56
14 changes: 12 additions & 2 deletions trunk/drivers/net/irda/sh_irda.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ static int sh_irda_hard_xmit(struct sk_buff *skb, struct net_device *ndev)

ret = sh_irda_set_baudrate(self, speed);
if (ret < 0)
return ret;
goto sh_irda_hard_xmit_end;

self->tx_buff.len = 0;
if (skb->len) {
Expand All @@ -652,11 +652,21 @@ static int sh_irda_hard_xmit(struct sk_buff *skb, struct net_device *ndev)

sh_irda_write(self, IRTFLR, self->tx_buff.len);
sh_irda_write(self, IRTCTR, ARMOD | TE);
}
} else
goto sh_irda_hard_xmit_end;

dev_kfree_skb(skb);

return 0;

sh_irda_hard_xmit_end:
sh_irda_set_baudrate(self, 9600);
netif_wake_queue(self->ndev);
sh_irda_rcv_ctrl(self, 1);
dev_kfree_skb(skb);

return ret;

}

static int sh_irda_ioctl(struct net_device *ndev, struct ifreq *ifreq, int cmd)
Expand Down

0 comments on commit 8b398b6

Please sign in to comment.