diff options
author | Wang Hai <wanghai38@huawei.com> | 2020-07-30 09:49:10 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-08-02 18:20:30 +0300 |
commit | 141bc9abbbffa89d020957caa9ac4a61d0ef1e26 (patch) | |
tree | 40668b69c1221b640b54d0d29d2265b8b4269662 /init | |
parent | e52525c0c320076deab35409a6b2cff6388959b8 (diff) | |
download | linux-141bc9abbbffa89d020957caa9ac4a61d0ef1e26.tar.xz |
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: 616f5701f4ab ("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
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions