]> git.baikalelectronics.ru Git - kernel.git/commit
qtnfmac: Missing platform_device_unregister() on error in qtnf_core_mac_alloc()
authorWang Hai <wanghai38@huawei.com>
Thu, 30 Jul 2020 06:49:10 +0000 (14:49 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 15:20:30 +0000 (18:20 +0300)
commitb07188b9d59d80a3644e3c0dfbb8c42e4ebd817b
tree40668b69c1221b640b54d0d29d2265b8b4269662
parent58a0619e96b1a9d3c85f007c89bb08454474b8f0
qtnfmac: Missing platform_device_unregister() on error in qtnf_core_mac_alloc()

Add the missing platform_device_unregister() before return from
qtnf_core_mac_alloc() in the error handling case.

Fixes: 460d6ec90c2c ("qtnfmac: assign each wiphy to its own virtual platform device")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Reviewed-by: Sergey Matyukevich <geomatsi@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200730064910.37589-1-wanghai38@huawei.com
drivers/net/wireless/quantenna/qtnfmac/core.c