mwl8k: fix error handling in mwl8k_post_cmd()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 5 Apr 2019 21:26:38 +0000 (00:26 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Apr 2019 16:51:46 +0000 (19:51 +0300)
commitd1717282afd54a34f01628e5a4559f913c6b0317
treef167d060a018983dcd2e4a4917b7fa07d132f9e6
parentb25105e126e79d8fb5a8c33b009a653f4a4aea71
mwl8k: fix error handling in mwl8k_post_cmd()

If pci_map_single() fails in mwl8k_post_cmd(),
it returns -ENOMEM immediately, while cleanup is required.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwl8k.c