diff options
author | Mark Greer <mgreer@animalcreek.com> | 2017-06-16 06:34:21 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2017-11-10 02:03:39 +0300 |
commit | 72ad533acc22870156736c2fef4674c01307695e (patch) | |
tree | a110f638dae7a99c089157e65b2368e9269a5ed5 /net/nfc | |
parent | 4b519bb493e0866de7659b88dd22dc2cd89dd628 (diff) | |
download | linux-72ad533acc22870156736c2fef4674c01307695e.tar.xz |
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/nfc')
-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; } |