Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289975
b: refs/heads/master
c: ea9917d
h: refs/heads/master
i:
  289973: 97fee46
  289971: 2937e45
  289967: d011171
v: v3
  • Loading branch information
Ilan Elias authored and John W. Linville committed Jan 24, 2012
1 parent e47a948 commit 51c1a02
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 1195d89b2defd92829ed54938e60312e62dc8747
refs/heads/master: ea9917d6f9e355646258b8d08ac69108908618a2
6 changes: 4 additions & 2 deletions trunk/drivers/nfc/nfcwilink.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,10 @@ static int nfcwilink_send(struct sk_buff *skb)

nfc_dev_dbg(&drv->pdev->dev, "send entry, len %d", skb->len);

if (!test_bit(NFCWILINK_RUNNING, &drv->flags))
return -EBUSY;
if (!test_bit(NFCWILINK_RUNNING, &drv->flags)) {
kfree_skb(skb);
return -EINVAL;
}

/* add the ST hdr to the start of the buffer */
hdr.len = cpu_to_le16(skb->len);
Expand Down

0 comments on commit 51c1a02

Please sign in to comment.