Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315286
b: refs/heads/master
c: 8668fdd
h: refs/heads/master
v: v3
  • Loading branch information
Eric Lapuyade authored and John W. Linville committed Jul 9, 2012
1 parent 56bdb96 commit 1422aa8
Show file tree
Hide file tree
Showing 2 changed files with 8 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: a070c8591a503ec65e2c84ebaf3454e5cd76e3fe
refs/heads/master: 8668fdd6efb3a75e0d58a3287a47fa7e60a68a73
9 changes: 7 additions & 2 deletions trunk/net/nfc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,13 +571,18 @@ int nfc_targets_found(struct nfc_dev *dev,

pr_debug("dev_name=%s n_targets=%d\n", dev_name(&dev->dev), n_targets);

dev->polling = false;

for (i = 0; i < n_targets; i++)
targets[i].idx = dev->target_next_idx++;

device_lock(&dev->dev);

if (dev->polling == false) {
device_unlock(&dev->dev);
return 0;
}

dev->polling = false;

dev->targets_generation++;

kfree(dev->targets);
Expand Down

0 comments on commit 1422aa8

Please sign in to comment.