NFC: digital: Abort cmd when deactivating target

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]>
This commit is contained in:
Mark Greer 2017-06-15 20:34:21 -07:00 • committed by Samuel Ortiz
commit 72ad533acc

View file

@ -650,6 +650,7 @@ static void digital_deactivate_target(struct nfc_dev *nfc_dev,
return;
}
digital_abort_cmd(ddev);
ddev->curr_protocol = 0;
}