]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: don't return zero on failure paths in mwifiex_pcie_init()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 25 Jan 2013 20:56:03 +0000 (00:56 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Jan 2013 20:07:04 +0000 (15:07 -0500)
commit9e95a2cc34f7d81132d45d31ed68f12f6745e29b
treef0a3e0986984d9d53390af2506af853bd792504f
parenta6142b90c214c3b5a8ad60bd7c8d3110bdbe75c1
mwifiex: don't return zero on failure paths in mwifiex_pcie_init()

If pci_iomap() fails in mwifiex_pcie_init(), it breaks off initialization,
deallocates all resources, but returns zero.
The patch adds -EIO as return value in this case.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c