diff options
author | Mark Greer <mgreer@animalcreek.com> | 2017-06-15 20:34:21 -0700 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2017-11-10 00:03:39 +0100 |
commit | 72ad533acc22870156736c2fef4674c01307695e (patch) | |
tree | a110f638dae7a99c089157e65b2368e9269a5ed5 /net | |
parent | 4b519bb493e0866de7659b88dd22dc2cd89dd628 (diff) |
NFC: digital: Abort cmd when deactivating target
When deactivating an active target, the outstanding command should
be aborted.
Signed-off-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/nfc/digital_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/nfc/digital_core.c b/net/nfc/digital_core.c index de6dd37d04c7..ec0a8998e52d 100644 --- a/net/nfc/digital_core.c +++ b/net/nfc/digital_core.c @@ -650,6 +650,7 @@ static void digital_deactivate_target(struct nfc_dev *nfc_dev, return; } + digital_abort_cmd(ddev); ddev->curr_protocol = 0; } |