rtw88: fix an issue about leak system resources
authorDejin Zheng <zhengdejin5@gmail.com>
Mon, 4 May 2020 08:34:42 +0000 (16:34 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 6 May 2020 08:37:32 +0000 (11:37 +0300)
commit191f6b08bfef24e1a9641eaac96ed030a7be4599
tree738087dcbf5cbc8dbb80004c40a6acb87505d40b
parent1757940430efa1b6a4d64074ef50336c6f8a46e6
rtw88: fix an issue about leak system resources

the related system resources were not released when pci_iomap() return
error in the rtw_pci_io_mapping() function. add pci_release_regions() to
fix it.

Fixes: e3037485c68ec1a ("rtw88: new Realtek 802.11ac driver")
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Acked-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200504083442.3033-1-zhengdejin5@gmail.com
drivers/net/wireless/realtek/rtw88/pci.c