aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorMaya Erez <[email protected]>2016-01-28 19:24:04 +0200
committerKalle Valo <[email protected]>2016-02-02 14:05:58 +0200
commitfe5c271e2878fb080f1b32fec5b4e3f7a6070152 (patch)
tree15750927bce554ae44b86f746d1fedef40025d6e /tools/perf/scripts/python/failed-syscalls-by-pid.py
parent78771d76f826202012201d700028a2d866d03fb3 (diff)
wil6210: protect synchronous wmi commands handling
In case there are multiple WMI commands with the same reply_id, the following scenario can occur: - Driver sends the first command to the device - The reply didn’t get on time and there is timeout - Reply_id, reply_buf and reply_size are set to 0 - Driver sends second wmi command with the same reply_id as the first - Driver sets wil->reply_id - Reply for the first wmi command arrives and handled by wmi_recv_cmd - As its ID fits the reply_id but the reply_buf is not set yet it is handled as a reply with event handler, and WARN_ON is printed This patch guarantee atomic setting of all the reply variables and prevents the above scenario. Signed-off-by: Maya Erez <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions