aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorLin Ma <[email protected]>2022-11-16 21:02:49 +0800
committerDavid S. Miller <[email protected]>2022-11-18 12:37:11 +0000
commit0ad6bded175e829c2ca261529c9dce39a32a042d (patch)
tree928426d6f60597f3ccc94f1de44e0f4166eb63b5 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent24deec6b9e4a051635f75777844ffc184644fec9 (diff)
nfc/nci: fix race with opening and closing
Previously we leverage NCI_UNREG and the lock inside nci_close_device to prevent the race condition between opening a device and closing a device. However, it still has problem because a failed opening command will erase the NCI_UNREG flag and allow another opening command to bypass the status checking. This fix corrects that by making sure the NCI_UNREG is held. Reported-by: [email protected] Fixes: 48b71a9e66c2 ("NFC: add NCI_UNREG flag to eliminate the race") Signed-off-by: Lin Ma <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions