]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
nfc: port100: handle command failure cleanly
authorOliver Neukum <oneukum@suse.com>
Thu, 21 Nov 2019 10:37:10 +0000 (11:37 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:27 +0000 (14:22 -0300)
commit6e3ce43617bee4d439a2475c0b0a184f7ce7f5d5
treebbe9e594988c84dbfb617b4827de37b09de1458f
parentaa7e087a01d25ed96cb3463cf9bc9fa40303cfa4
nfc: port100: handle command failure cleanly

BugLink: https://bugs.launchpad.net/bugs/1854861
commit 5f9f0b11f0816b35867f2cf71e54d95f53f03902 upstream.

If starting the transfer of a command suceeds but the transfer for the reply
fails, it is not enough to initiate killing the transfer for the
command may still be running. You need to wait for the killing to finish
before you can reuse URB and buffer.

Reported-and-tested-by: syzbot+711468aa5c3a1eabf863@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/nfc/port100.c