]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: don't exit from lbs_ibss_join_existing() with RCU read lock held
authorNicolai Stange <nstange@suse.de>
Tue, 14 Jan 2020 10:39:02 +0000 (11:39 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 27 Jan 2020 14:35:55 +0000 (16:35 +0200)
commit9ade51452891e4c9799badeaab9ed0cf6190fb4a
treea557419a1c98d77a62896dda7c62d8c5f55666a9
parente7603495e57138e4c957bbe7500060cc50fe5387
libertas: don't exit from lbs_ibss_join_existing() with RCU read lock held

Commit 9b9335ba134c ("libertas: Fix two buffer overflows at parsing bss
descriptor") introduced a bounds check on the number of supplied rates to
lbs_ibss_join_existing().

Unfortunately, it introduced a return path from within a RCU read side
critical section without a corresponding rcu_read_unlock(). Fix this.

Fixes: 9b9335ba134c ("libertas: Fix two buffer overflows at parsing bss descriptor")
Signed-off-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas/cfg.c