hostap: do not return positive number on failure path in prism2_open()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 5 Aug 2013 03:18:28 +0000 (07:18 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Aug 2013 18:52:45 +0000 (14:52 -0400)
commit0cbe8c87fe02513e6de981c18502d220ed4afe41
treeb08bf57dfed97c33044c34a2ece0c36d3fc6aa6e
parent84893817aa382b923e3d7491e7081eeb6d9ec213
hostap: do not return positive number on failure path in prism2_open()

prism2_open() as an .ndo_open handler should not return positive numbers
in case of failure, but it does return 1 in a couple of places.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_main.c