OSDN Git Service

nfc: nci: add missed destroy_workqueue in nci_register_device
authorWang Hai <wanghai38@huawei.com>
Fri, 17 Jul 2020 07:10:16 +0000 (15:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2020 20:08:08 +0000 (13:08 -0700)
commit0b4a66a389d1ff5dab29f688fcfe36482bc889a2
tree426d12961913ab9fe5a4377902bf2bdfabe45560
parent1291517462f7fc667ab780d92955f5796f4fd6af
nfc: nci: add missed destroy_workqueue in nci_register_device

When nfc_register_device fails in nci_register_device,
destroy_workqueue() shouled be called to destroy ndev->tx_wq.

Fixes: 3c1c0f5dc80b ("NFC: NCI: Fix nci_register_device init sequence")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/nfc/nci/core.c