]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:14:23 +0000 (09:14 +0100)
commitd987de580cecd4f37891460c59a2e940c238b8d2
tree2e5e15f81202a055158a144eb4e972d147697007
parent96b59fd4c7f5ca1d3c6238a11a29ddb0e98e4531
nfc: port100: handle command failure cleanly

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>
drivers/nfc/port100.c