Skip to content

Commit

Permalink
NFC: digital: Abort cmd when deactivating target
Browse files Browse the repository at this point in the history
When deactivating an active target, the outstanding command should
be aborted.

Signed-off-by: Mark Greer <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
mgreeraz authored and Samuel Ortiz committed Nov 9, 2017
1 parent 4b519bb commit 72ad533
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/nfc/digital_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ static void digital_deactivate_target(struct nfc_dev *nfc_dev,
return;
}

digital_abort_cmd(ddev);
ddev->curr_protocol = 0;
}

Expand Down

0 comments on commit 72ad533

Please sign in to comment.