summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/Makefile
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2017-02-04 10:16:56 +0900
committerSamuel Ortiz <sameo@linux.intel.com>2017-04-01 23:04:30 +0200
commit2497128133f8169b24b928852ba6eae34fc495e5 (patch)
tree78d8aacc0bc93f1e3a426adcd8a470576c88801c /drivers/nfc/Makefile
parent0ada076819529203e11fcd5d3d52a2c9ada21879 (diff)
downloadlinux-stable-2497128133f8169b24b928852ba6eae34fc495e5.tar.gz
linux-stable-2497128133f8169b24b928852ba6eae34fc495e5.tar.bz2
linux-stable-2497128133f8169b24b928852ba6eae34fc495e5.zip
nfc: Fix hangup of RC-S380* in port100_send_ack()
If port100_send_ack() was called twice or more, it has race to hangup. port100_send_ack() port100_send_ack() init_completion() [...] dev->cmd_cancel = true /* this removes previous from completion */ init_completion() [...] dev->cmd_cancel = true wait_for_completion() /* never be waked up */ wait_for_completion() Like above race, this code is not assuming port100_send_ack() is called twice or more. To fix, this checks dev->cmd_cancel to know if prior cancel is in-flight or not. And never be remove prior task from completion by using reinit_completion(), so this guarantees to be waked up properly soon or later. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/Makefile')
0 files changed, 0 insertions, 0 deletions