mwifiex: fix unbalanced locking in mwifiex_process_country_ie()
authorBrian Norris <briannorris@chromium.org>
Mon, 6 Jan 2020 22:42:12 +0000 (14:42 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 27 Jan 2020 14:33:14 +0000 (16:33 +0200)
commit65b1aae0d9d5962faccc06bdb8e91a2a0b09451c
treebddc502a15e55d36f91e539ddbbc843962600623
parentc312840cd79061af37158cb42590931cfa364c1b
mwifiex: fix unbalanced locking in mwifiex_process_country_ie()

We called rcu_read_lock(), so we need to call rcu_read_unlock() before
we return.

Fixes: 3d94a4a8373b ("mwifiex: fix possible heap overflow in mwifiex_process_country_ie()")
Cc: stable@vger.kernel.org
Cc: huangwen <huangwenabc@gmail.com>
Cc: Ganapathi Bhat <ganapathi.bhat@nxp.com>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Acked-by: Ganapathi Bhat <ganapathi.bhat@nxp.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c